public class BGFXCallbackInterface
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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.
vtbl – the callback virtual table
struct bgfx_callback_interface_t {
bgfx_callback_vtbl_t const * vtbl;
}| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
VTBL
The struct member offsets.
|
| Constructor and Description |
|---|
BGFXCallbackInterface(java.nio.ByteBuffer container)
Creates a
BGFXCallbackInterface instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static BGFXCallbackInterface |
calloc()
Returns a new
BGFXCallbackInterface instance allocated with memCalloc. |
static BGFXCallbackInterface |
callocStack()
Returns a new
BGFXCallbackInterface instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXCallbackInterface |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXCallbackInterface instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXCallbackInterface |
create()
Returns a new
BGFXCallbackInterface instance allocated with BufferUtils. |
static BGFXCallbackInterface |
create(long address)
Returns a new
BGFXCallbackInterface instance for the specified memory address. |
static BGFXCallbackInterface |
createSafe(long address)
|
static BGFXCallbackInterface |
malloc()
Returns a new
BGFXCallbackInterface instance allocated with memAlloc. |
static BGFXCallbackInterface |
mallocStack()
Returns a new
BGFXCallbackInterface instance allocated on the thread-local MemoryStack. |
static BGFXCallbackInterface |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXCallbackInterface instance allocated on the specified MemoryStack. |
static BGFXCallbackVtbl |
nvtbl(long struct)
Unsafe version of
vtbl(). |
static void |
nvtbl(long struct,
BGFXCallbackVtbl value)
Unsafe version of
vtbl. |
BGFXCallbackInterface |
set(BGFXCallbackInterface src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
BGFXCallbackVtbl |
vtbl()
Returns a
BGFXCallbackVtbl view of the struct pointed to by the vtbl field. |
BGFXCallbackInterface |
vtbl(BGFXCallbackVtbl value)
Sets the address of the specified
BGFXCallbackVtbl to the vtbl field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int VTBL
public BGFXCallbackInterface(java.nio.ByteBuffer container)
BGFXCallbackInterface instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic BGFXCallbackVtbl vtbl()
BGFXCallbackVtbl view of the struct pointed to by the vtbl field.public BGFXCallbackInterface vtbl(BGFXCallbackVtbl value)
BGFXCallbackVtbl to the vtbl field.public BGFXCallbackInterface set(BGFXCallbackInterface src)
src - the source structpublic static BGFXCallbackInterface malloc()
BGFXCallbackInterface instance allocated with memAlloc. The instance must be explicitly freed.public static BGFXCallbackInterface calloc()
BGFXCallbackInterface instance allocated with memCalloc. The instance must be explicitly freed.public static BGFXCallbackInterface create()
BGFXCallbackInterface instance allocated with BufferUtils.public static BGFXCallbackInterface create(long address)
BGFXCallbackInterface instance for the specified memory address.@Nullable public static BGFXCallbackInterface createSafe(long address)
public static BGFXCallbackInterface mallocStack()
BGFXCallbackInterface instance allocated on the thread-local MemoryStack.public static BGFXCallbackInterface callocStack()
BGFXCallbackInterface instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BGFXCallbackInterface mallocStack(org.lwjgl.system.MemoryStack stack)
BGFXCallbackInterface instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BGFXCallbackInterface callocStack(org.lwjgl.system.MemoryStack stack)
BGFXCallbackInterface instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static BGFXCallbackVtbl nvtbl(long struct)
vtbl().public static void nvtbl(long struct,
BGFXCallbackVtbl value)
vtbl.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.