Class BGFXFatalCallback

  • All Implemented Interfaces:
    java.lang.AutoCloseable, BGFXFatalCallbackI, CallbackI, CallbackI.V, NativeResource, Pointer

    public abstract class BGFXFatalCallback
    extends Callback
    implements BGFXFatalCallbackI
    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

      • create

        public static BGFXFatalCallback create​(long functionPointer)
        Creates a BGFXFatalCallback instance from the specified function pointer.
        Returns:
        the new BGFXFatalCallback
      • createSafe

        @Nullable
        public static BGFXFatalCallback createSafe​(long functionPointer)
        Like create, but returns null if functionPointer is NULL.
      • create

        public static BGFXFatalCallback create​(BGFXFatalCallbackI instance)
        Creates a BGFXFatalCallback instance that delegates to the specified BGFXFatalCallbackI instance.