public class BGFXPlatformData
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
ndt – native display typenwh – native window handlecontext – GL context, or D3D devicebackBuffer – GL backbuffer, or D3D render target viewbackBufferDS – Backbuffer depth/stencil
struct bgfx_platform_data_t {
void * ndt;
void * nwh;
void * context;
void * backBuffer;
void * backBufferDS;
}| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
BACKBUFFER
The struct member offsets.
|
static int |
BACKBUFFERDS
The struct member offsets.
|
static int |
CONTEXT
The struct member offsets.
|
static int |
NDT
The struct member offsets.
|
static int |
NWH
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
BGFXPlatformData(java.nio.ByteBuffer container)
Creates a
BGFXPlatformData instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
long |
backBuffer()
Returns the value of the
backBuffer field. |
BGFXPlatformData |
backBuffer(long value)
Sets the specified value to the
backBuffer field. |
long |
backBufferDS()
Returns the value of the
backBufferDS field. |
BGFXPlatformData |
backBufferDS(long value)
Sets the specified value to the
backBufferDS field. |
static BGFXPlatformData |
calloc()
Returns a new
BGFXPlatformData instance allocated with memCalloc. |
static BGFXPlatformData |
callocStack()
Returns a new
BGFXPlatformData instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXPlatformData |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXPlatformData instance allocated on the specified MemoryStack and initializes all its bits to zero. |
long |
context()
Returns the value of the
context field. |
BGFXPlatformData |
context(long value)
Sets the specified value to the
context field. |
static BGFXPlatformData |
create()
Returns a new
BGFXPlatformData instance allocated with BufferUtils. |
static BGFXPlatformData |
create(long address)
Returns a new
BGFXPlatformData instance for the specified memory address. |
static BGFXPlatformData |
createSafe(long address)
|
static BGFXPlatformData |
malloc()
Returns a new
BGFXPlatformData instance allocated with memAlloc. |
static BGFXPlatformData |
mallocStack()
Returns a new
BGFXPlatformData instance allocated on the thread-local MemoryStack. |
static BGFXPlatformData |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXPlatformData instance allocated on the specified MemoryStack. |
static long |
nbackBuffer(long struct)
Unsafe version of
backBuffer(). |
static void |
nbackBuffer(long struct,
long value)
Unsafe version of
backBuffer. |
static long |
nbackBufferDS(long struct)
Unsafe version of
backBufferDS(). |
static void |
nbackBufferDS(long struct,
long value)
Unsafe version of
backBufferDS. |
static long |
ncontext(long struct)
Unsafe version of
context(). |
static void |
ncontext(long struct,
long value)
Unsafe version of
context. |
long |
ndt()
Returns the value of the
ndt field. |
BGFXPlatformData |
ndt(long value)
Sets the specified value to the
ndt field. |
static long |
nndt(long struct)
Unsafe version of
ndt(). |
static void |
nndt(long struct,
long value)
Unsafe version of
ndt. |
static long |
nnwh(long struct)
Unsafe version of
nwh(). |
static void |
nnwh(long struct,
long value)
Unsafe version of
nwh. |
long |
nwh()
Returns the value of the
nwh field. |
BGFXPlatformData |
nwh(long value)
Sets the specified value to the
nwh field. |
BGFXPlatformData |
set(BGFXPlatformData src)
Copies the specified struct data to this struct.
|
BGFXPlatformData |
set(long ndt,
long nwh,
long context,
long backBuffer,
long backBufferDS)
Initializes this struct with the specified values.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int NDT
public static final int NWH
public static final int CONTEXT
public static final int BACKBUFFER
public static final int BACKBUFFERDS
public BGFXPlatformData(java.nio.ByteBuffer container)
BGFXPlatformData 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 long ndt()
ndt field.public long nwh()
nwh field.public long context()
context field.public long backBuffer()
backBuffer field.public long backBufferDS()
backBufferDS field.public BGFXPlatformData ndt(long value)
ndt field.public BGFXPlatformData nwh(long value)
nwh field.public BGFXPlatformData context(long value)
context field.public BGFXPlatformData backBuffer(long value)
backBuffer field.public BGFXPlatformData backBufferDS(long value)
backBufferDS field.public BGFXPlatformData set(long ndt, long nwh, long context, long backBuffer, long backBufferDS)
public BGFXPlatformData set(BGFXPlatformData src)
src - the source structpublic static BGFXPlatformData malloc()
BGFXPlatformData instance allocated with memAlloc. The instance must be explicitly freed.public static BGFXPlatformData calloc()
BGFXPlatformData instance allocated with memCalloc. The instance must be explicitly freed.public static BGFXPlatformData create()
BGFXPlatformData instance allocated with BufferUtils.public static BGFXPlatformData create(long address)
BGFXPlatformData instance for the specified memory address.@Nullable public static BGFXPlatformData createSafe(long address)
public static BGFXPlatformData mallocStack()
BGFXPlatformData instance allocated on the thread-local MemoryStack.public static BGFXPlatformData callocStack()
BGFXPlatformData instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BGFXPlatformData mallocStack(org.lwjgl.system.MemoryStack stack)
BGFXPlatformData instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BGFXPlatformData callocStack(org.lwjgl.system.MemoryStack stack)
BGFXPlatformData instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static long nndt(long struct)
ndt().public static long nnwh(long struct)
nwh().public static long ncontext(long struct)
context().public static long nbackBuffer(long struct)
backBuffer().public static long nbackBufferDS(long struct)
backBufferDS().public static void nndt(long struct,
long value)
ndt.public static void nnwh(long struct,
long value)
nwh.public static void ncontext(long struct,
long value)
context.public static void nbackBuffer(long struct,
long value)
backBuffer.public static void nbackBufferDS(long struct,
long value)
backBufferDS.Copyright LWJGL. All Rights Reserved. License terms.