Package org.lwjgl.bgfx
Class BGFXCallbackInterface
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<BGFXCallbackInterface>
org.lwjgl.bgfx.BGFXCallbackInterface
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class BGFXCallbackInterface
extends org.lwjgl.system.Struct<BGFXCallbackInterface>
implements org.lwjgl.system.NativeResource
Callback interface to implement application specific behavior.
Cached items are currently used for OpenGL and Direct3D 12 binary shaders.
fatal and trace_vargs callbacks can be called from any thread. Other callbacks are called from the render thread.
Layout
struct bgfx_callback_interface_t {
bgfx_callback_vtbl_t const * vtbl();
}-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct size in bytes.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBGFXCallbackInterface(ByteBuffer container) Creates aBGFXCallbackInterfaceinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic BGFXCallbackInterfacecalloc()Returns a newBGFXCallbackInterfaceinstance allocated withmemCalloc.static BGFXCallbackInterfacecalloc(org.lwjgl.system.MemoryStack stack) Returns a newBGFXCallbackInterfaceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXCallbackInterfaceDeprecated.static BGFXCallbackInterfacecallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static BGFXCallbackInterfacecreate()Returns a newBGFXCallbackInterfaceinstance allocated withBufferUtils.static BGFXCallbackInterfacecreate(long address) Returns a newBGFXCallbackInterfaceinstance for the specified memory address.static @Nullable BGFXCallbackInterfacecreateSafe(long address) static BGFXCallbackInterfacemalloc()Returns a newBGFXCallbackInterfaceinstance allocated withmemAlloc.static BGFXCallbackInterfacemalloc(org.lwjgl.system.MemoryStack stack) Returns a newBGFXCallbackInterfaceinstance allocated on the specifiedMemoryStack.static BGFXCallbackInterfaceDeprecated.static BGFXCallbackInterfacemallocStack(org.lwjgl.system.MemoryStack stack) Deprecated.static BGFXCallbackVtblnvtbl(long struct) Unsafe version ofvtbl().static voidnvtbl(long struct, BGFXCallbackVtbl value) Unsafe version ofvtbl.set(BGFXCallbackInterface src) Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct) Validates pointer members that should not beNULL.vtbl()the callback virtual tablevtbl(BGFXCallbackVtbl value) Sets the address of the specifiedBGFXCallbackVtblto thevtbl()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
VTBL
public static final int VTBLThe struct member offsets.
-
-
Constructor Details
-
BGFXCallbackInterface
Creates aBGFXCallbackInterfaceinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<BGFXCallbackInterface>
-
vtbl
the callback virtual table -
vtbl
Sets the address of the specifiedBGFXCallbackVtblto thevtbl()field. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newBGFXCallbackInterfaceinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newBGFXCallbackInterfaceinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newBGFXCallbackInterfaceinstance allocated withBufferUtils. -
create
Returns a newBGFXCallbackInterfaceinstance for the specified memory address. -
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
malloc
Returns a newBGFXCallbackInterfaceinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newBGFXCallbackInterfaceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
nvtbl
Unsafe version ofvtbl(). -
nvtbl
Unsafe version ofvtbl. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-