Interface BGFXFatalCallbackI

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

    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.


     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
        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
        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.
        _this - the callback interface
        _filePath - file path where fatal message was generated
        _line - line where fatal message was generated
        _code - the error code
        _str - the error message