Interface BGFXFatalCallbackI

  • All Superinterfaces:
    CallbackI, CallbackI.V, Pointer
    All Known Implementing Classes:
    BGFXFatalCallback
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface BGFXFatalCallbackI
    extends CallbackI.V
    If fatal code is not FATAL_DEBUG_CHECK this callback is called on unrecoverable error. It's not safe to continue, inform user and terminate application from this call.

    Not thread safe and it can be called from any thread.

    Type

    
     void (*) (
         bgfx_callback_interface_t *_this,
         char const *_filePath,
         uint16_t _line,
         bgfx_fatal_t _code,
         char const *_str
     )
    • Method Detail

      • getSignature

        default java.lang.String getSignature()
        Description copied from interface: CallbackI
        Returns the dyncall signature for this callback function. [INTERNAL API]
        Specified by:
        getSignature in interface CallbackI
        Returns:
        the dyncall signature
      • callback

        default void callback​(long args)
        Description copied from interface: CallbackI.V
        Will be called by native code.
        Specified by:
        callback in interface CallbackI.V
        Parameters:
        args - pointer to a DCArgs iterator
      • invoke

        void invoke​(long _this,
                    long _filePath,
                    short _line,
                    int _code,
                    long _str)
        This callback is called on unrecoverable errors.
        Parameters:
        _this - the callback interface
        _code - the error code
        _str - the error message