Package org.lwjgl.bgfx
Class BGFXInternalData
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXInternalData
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class BGFXInternalData extends org.lwjgl.system.Struct
Internal data.Member documentation
caps
– renderer capabilitiescontext
– GL context, or D3D device
Layout
struct bgfx_internal_data_t {
bgfx_caps_t
* caps; void * context; }
-
-
Constructor Summary
Constructors Constructor Description BGFXInternalData(java.nio.ByteBuffer container)
Creates aBGFXInternalData
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BGFXCaps
caps()
Returns aBGFXCaps
view of the struct pointed to by thecaps
field.long
context()
Returns the value of thecontext
field.static BGFXInternalData
create(long address)
Returns a newBGFXInternalData
instance for the specified memory address.static BGFXInternalData
createSafe(long address)
static BGFXCaps
ncaps(long struct)
Unsafe version ofcaps()
.static long
ncontext(long struct)
Unsafe version ofcontext()
.int
sizeof()
-
-
-
Constructor Detail
-
BGFXInternalData
public BGFXInternalData(java.nio.ByteBuffer container)
Creates aBGFXInternalData
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
context
public long context()
Returns the value of thecontext
field.
-
create
public static BGFXInternalData create(long address)
Returns a newBGFXInternalData
instance for the specified memory address.
-
createSafe
@Nullable public static BGFXInternalData createSafe(long address)
-
ncontext
public static long ncontext(long struct)
Unsafe version ofcontext()
.
-
-