Top Description Inners Constructors Methods
org.lwjgl.bgfx

public abstract Class BGFXFatalCallback

extends Callback
implements BGFXFatalCallbackI
Class Inheritance
All Implemented Interfaces
org.lwjgl.bgfx.BGFXFatalCallbackI, org.lwjgl.system.CallbackI, org.lwjgl.system.Pointer
Known Direct Subclasses
org.lwjgl.bgfx.BGFXFatalCallback.Container
Imports
javax.annotation.*, org.lwjgl.system.*

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 (*invoke) (
    bgfx_callback_interface_t *_this,
    char const *_filePath,
    uint16_t _line,
    bgfx_fatal_t _code,
    char const *_str
)

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Constructor Summary

AccessConstructor and Description
protected
pack-priv
BGFXFatalCallback(long functionPointer)

Method Summary

Modifier and TypeMethod and Description
public static BGFXFatalCallback

Returns:

the new BGFXFatalCallback
create
(long functionPointer)

Creates a BGFXFatalCallback instance from the specified function pointer.

public static BGFXFatalCallback
create(BGFXFatalCallbackI instance)

Creates a BGFXFatalCallback instance that delegates to the specified BGFXFatalCallbackI instance.

public static BGFXFatalCallback
createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Inherited from org.lwjgl.system.Callback:
addressequalsfreefreegetgetSafehashCodetoString

Constructor Detail

BGFXFatalCallbackback to summary
protected BGFXFatalCallback()
BGFXFatalCallbackback to summary
pack-priv BGFXFatalCallback(long functionPointer)

Method Detail

createback to summary
public static BGFXFatalCallback create(long functionPointer)

Creates a BGFXFatalCallback instance from the specified function pointer.

Returns:BGFXFatalCallback

the new BGFXFatalCallback

createback to summary
public static BGFXFatalCallback create(BGFXFatalCallbackI instance)

Creates a BGFXFatalCallback instance that delegates to the specified BGFXFatalCallbackI instance.

createSafeback to summary
public static BGFXFatalCallback createSafe(long functionPointer)

Like create, but returns null if functionPointer is NULL.

Annotations
@Nullable
org.lwjgl.bgfx back to summary

private final Class BGFXFatalCallback.Container

extends BGFXFatalCallback
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final BGFXFatalCallbackI

Constructor Summary

AccessConstructor and Description
pack-priv
Container(long functionPointer, BGFXFatalCallbackI delegate)

Method Summary

Modifier and TypeMethod and Description
public void
invoke(long
the callback interface
_this
,
long
file path where fatal message was generated
_filePath
,
short
line where fatal message was generated
_line
,
int
the error code
_code
,
long
the error message
_str
)

Implements org.lwjgl.bgfx.BGFXFatalCallbackI.invoke.

This callback is called on unrecoverable errors.
Inherited from org.lwjgl.bgfx.BGFXFatalCallback:
createcreatecreateSafe

Field Detail

delegateback to summary
private final BGFXFatalCallbackI delegate

Constructor Detail

Containerback to summary
pack-priv Container(long functionPointer, BGFXFatalCallbackI delegate)

Method Detail

invokeback to summary
public void invoke(long _this, long _filePath, short _line, int _code, long _str)

Implements org.lwjgl.bgfx.BGFXFatalCallbackI.invoke.

Doc from org.lwjgl.bgfx.BGFXFatalCallbackI.invoke.

This callback is called on unrecoverable errors.

Parameters
_this:long

the callback interface

_filePath:long

file path where fatal message was generated

_line:short

line where fatal message was generated

_code:int

the error code

_str:long

the error message

Annotations
@Override