Package org.lwjgl.bgfx
Class BGFXCallbackInterface
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXCallbackInterface
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class BGFXCallbackInterface extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceCallback interface to implement application specific behavior.Cached items are currently used for OpenGL and Direct3D 12 binary shaders.
fatalandtrace_vargscallbacks can be called from any thread. Other callbacks are called from the render thread.Layout
struct bgfx_callback_interface_t {bgfx_callback_vtbl_tconst *vtbl(); }
-
-
Constructor Summary
Constructors Constructor Description BGFXCallbackInterface(java.nio.ByteBuffer container)Creates aBGFXCallbackInterfaceinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static 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 BGFXCallbackInterfacecallocStack()Deprecated.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 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 BGFXCallbackInterfacemallocStack()Deprecated.static BGFXCallbackInterfacemallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXCallbackVtblnvtbl(long struct)Unsafe version ofvtbl().static voidnvtbl(long struct, BGFXCallbackVtbl value)Unsafe version ofvtbl.BGFXCallbackInterfaceset(BGFXCallbackInterface src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.BGFXCallbackVtblvtbl()the callback virtual tableBGFXCallbackInterfacevtbl(BGFXCallbackVtbl value)Sets the address of the specifiedBGFXCallbackVtblto thevtbl()field.
-
-
-
Constructor Detail
-
BGFXCallbackInterface
public BGFXCallbackInterface(java.nio.ByteBuffer container)
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
vtbl
public BGFXCallbackVtbl vtbl()
the callback virtual table
-
vtbl
public BGFXCallbackInterface vtbl(BGFXCallbackVtbl value)
Sets the address of the specifiedBGFXCallbackVtblto thevtbl()field.
-
set
public BGFXCallbackInterface set(BGFXCallbackInterface src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static BGFXCallbackInterface malloc()
Returns a newBGFXCallbackInterfaceinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static BGFXCallbackInterface calloc()
Returns a newBGFXCallbackInterfaceinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static BGFXCallbackInterface create()
Returns a newBGFXCallbackInterfaceinstance allocated withBufferUtils.
-
create
public static BGFXCallbackInterface create(long address)
Returns a newBGFXCallbackInterfaceinstance for the specified memory address.
-
createSafe
@Nullable public static BGFXCallbackInterface createSafe(long address)
-
mallocStack
@Deprecated public static BGFXCallbackInterface mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXCallbackInterface callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXCallbackInterface mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXCallbackInterface callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
malloc
public static BGFXCallbackInterface malloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXCallbackInterfaceinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static BGFXCallbackInterface calloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXCallbackInterfaceinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
nvtbl
public static BGFXCallbackVtbl nvtbl(long struct)
Unsafe version ofvtbl().
-
nvtbl
public static void nvtbl(long struct, BGFXCallbackVtbl value)Unsafe version ofvtbl.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-