Package org.lwjgl.bgfx
Class BGFXCallbackInterface
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct bgfx_callback_interface_t {
{@link BGFXCallbackVtbl bgfx_callback_vtbl_t} const * vtbl;
}
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct size in bytes.static final int
The 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 aBGFXCallbackInterface
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic BGFXCallbackInterface
calloc()
Returns a newBGFXCallbackInterface
instance allocated withmemCalloc
.static BGFXCallbackInterface
calloc
(MemoryStack stack) Returns a newBGFXCallbackInterface
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static BGFXCallbackInterface
Deprecated.static BGFXCallbackInterface
callocStack
(MemoryStack stack) Deprecated.static BGFXCallbackInterface
create()
Returns a newBGFXCallbackInterface
instance allocated withBufferUtils
.static BGFXCallbackInterface
create
(long address) Returns a newBGFXCallbackInterface
instance for the specified memory address.static @Nullable BGFXCallbackInterface
createSafe
(long address) static BGFXCallbackInterface
malloc()
Returns a newBGFXCallbackInterface
instance allocated withmemAlloc
.static BGFXCallbackInterface
malloc
(MemoryStack stack) Returns a newBGFXCallbackInterface
instance allocated on the specifiedMemoryStack
.static BGFXCallbackInterface
Deprecated.static BGFXCallbackInterface
mallocStack
(MemoryStack stack) Deprecated.static BGFXCallbackVtbl
nvtbl
(long struct) Unsafe version ofvtbl()
.static void
nvtbl
(long struct, BGFXCallbackVtbl value) Unsafe version ofvtbl
.set
(BGFXCallbackInterface src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.vtbl()
vtbl
(BGFXCallbackVtbl value) Sets the address of the specifiedBGFXCallbackVtbl
to thevtbl
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aBGFXCallbackInterface
instance at the current position of the specifiedByteBuffer
container. 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:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<BGFXCallbackInterface>
-
vtbl
- Returns:
- a
BGFXCallbackVtbl
view of the struct pointed to by thevtbl
field.
-
vtbl
Sets the address of the specifiedBGFXCallbackVtbl
to thevtbl
field. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newBGFXCallbackInterface
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newBGFXCallbackInterface
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newBGFXCallbackInterface
instance allocated withBufferUtils
. -
create
Returns a newBGFXCallbackInterface
instance 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 newBGFXCallbackInterface
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newBGFXCallbackInterface
instance allocated on the specifiedMemoryStack
and 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
-