Package org.lwjgl.bgfx
Class BGFXCallbackInterface
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct bgfx_callback_interface_t {
bgfx_callback_vtbl_t const * vtbl;
}-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
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(MemoryStack stack) Returns a newBGFXCallbackInterfaceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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(MemoryStack stack) Returns a newBGFXCallbackInterfaceinstance allocated on the specifiedMemoryStack.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()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.vtbl()vtbl(BGFXCallbackVtbl value) Sets the address of the specifiedBGFXCallbackVtblto thevtblfield.Methods 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()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<BGFXCallbackInterface>
-
vtbl
- Returns:
- a
BGFXCallbackVtblview of the struct pointed to by thevtblfield.
-
vtbl
Sets the address of the specifiedBGFXCallbackVtblto thevtblfield. -
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
-
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
-