public class BGFXTransientIndexBuffer
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
data – pointer to datasize – data sizestartIndex – first indexhandle – index buffer handle
struct bgfx_transient_index_buffer_t {
uint8_t * data;
uint32_t size;
uint32_t startIndex;
bgfx_index_buffer_handle_t handle;
}| Modifier and Type | Class and Description |
|---|---|
static class |
BGFXTransientIndexBuffer.Buffer
An array of
BGFXTransientIndexBuffer structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DATA
The struct member offsets.
|
static int |
HANDLE
The struct member offsets.
|
static int |
SIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STARTINDEX
The struct member offsets.
|
| Constructor and Description |
|---|
BGFXTransientIndexBuffer(java.nio.ByteBuffer container)
Creates a
BGFXTransientIndexBuffer instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static BGFXTransientIndexBuffer |
calloc()
Returns a new
BGFXTransientIndexBuffer instance allocated with memCalloc. |
static BGFXTransientIndexBuffer.Buffer |
calloc(int capacity)
Returns a new
BGFXTransientIndexBuffer.Buffer instance allocated with memCalloc. |
static BGFXTransientIndexBuffer |
callocStack()
Returns a new
BGFXTransientIndexBuffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXTransientIndexBuffer.Buffer |
callocStack(int capacity)
Returns a new
BGFXTransientIndexBuffer.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXTransientIndexBuffer.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTransientIndexBuffer.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXTransientIndexBuffer |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTransientIndexBuffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXTransientIndexBuffer |
create()
Returns a new
BGFXTransientIndexBuffer instance allocated with BufferUtils. |
static BGFXTransientIndexBuffer.Buffer |
create(int capacity)
Returns a new
BGFXTransientIndexBuffer.Buffer instance allocated with BufferUtils. |
static BGFXTransientIndexBuffer |
create(long address)
Returns a new
BGFXTransientIndexBuffer instance for the specified memory address. |
static BGFXTransientIndexBuffer.Buffer |
create(long address,
int capacity)
Create a
BGFXTransientIndexBuffer.Buffer instance at the specified memory. |
static BGFXTransientIndexBuffer |
createSafe(long address)
|
static BGFXTransientIndexBuffer.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
data()
Returns a
ByteBuffer view of the data pointed to by the data field. |
BGFXTransientIndexBuffer |
data(java.nio.ByteBuffer value)
Sets the address of the specified
ByteBuffer to the data field. |
short |
handle()
Returns the value of the
handle field. |
BGFXTransientIndexBuffer |
handle(short value)
Sets the specified value to the
handle field. |
static BGFXTransientIndexBuffer |
malloc()
Returns a new
BGFXTransientIndexBuffer instance allocated with memAlloc. |
static BGFXTransientIndexBuffer.Buffer |
malloc(int capacity)
Returns a new
BGFXTransientIndexBuffer.Buffer instance allocated with memAlloc. |
static BGFXTransientIndexBuffer |
mallocStack()
Returns a new
BGFXTransientIndexBuffer instance allocated on the thread-local MemoryStack. |
static BGFXTransientIndexBuffer.Buffer |
mallocStack(int capacity)
Returns a new
BGFXTransientIndexBuffer.Buffer instance allocated on the thread-local MemoryStack. |
static BGFXTransientIndexBuffer.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTransientIndexBuffer.Buffer instance allocated on the specified MemoryStack. |
static BGFXTransientIndexBuffer |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTransientIndexBuffer instance allocated on the specified MemoryStack. |
static java.nio.ByteBuffer |
ndata(long struct)
Unsafe version of
data. |
static void |
ndata(long struct,
java.nio.ByteBuffer value)
Unsafe version of
data. |
static short |
nhandle(long struct)
Unsafe version of
handle(). |
static void |
nhandle(long struct,
short value)
Unsafe version of
handle. |
static int |
nsize(long struct)
Unsafe version of
size(). |
static void |
nsize(long struct,
int value)
Sets the specified value to the
size field of the specified struct. |
static int |
nstartIndex(long struct)
Unsafe version of
startIndex(). |
static void |
nstartIndex(long struct,
int value)
Unsafe version of
startIndex. |
BGFXTransientIndexBuffer |
set(BGFXTransientIndexBuffer src)
Copies the specified struct data to this struct.
|
BGFXTransientIndexBuffer |
set(java.nio.ByteBuffer data,
int startIndex,
short handle)
Initializes this struct with the specified values.
|
int |
size()
Returns the value of the
size field. |
int |
sizeof() |
int |
startIndex()
Returns the value of the
startIndex field. |
BGFXTransientIndexBuffer |
startIndex(int value)
Sets the specified value to the
startIndex field. |
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. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int DATA
public static final int SIZE
public static final int STARTINDEX
public static final int HANDLE
public BGFXTransientIndexBuffer(java.nio.ByteBuffer container)
BGFXTransientIndexBuffer 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 java.nio.ByteBuffer data()
ByteBuffer view of the data pointed to by the data field.public int size()
size field.public int startIndex()
startIndex field.public short handle()
handle field.public BGFXTransientIndexBuffer data(java.nio.ByteBuffer value)
ByteBuffer to the data field.public BGFXTransientIndexBuffer startIndex(int value)
startIndex field.public BGFXTransientIndexBuffer handle(short value)
handle field.public BGFXTransientIndexBuffer set(java.nio.ByteBuffer data, int startIndex, short handle)
public BGFXTransientIndexBuffer set(BGFXTransientIndexBuffer src)
src - the source structpublic static BGFXTransientIndexBuffer malloc()
BGFXTransientIndexBuffer instance allocated with memAlloc. The instance must be explicitly freed.public static BGFXTransientIndexBuffer calloc()
BGFXTransientIndexBuffer instance allocated with memCalloc. The instance must be explicitly freed.public static BGFXTransientIndexBuffer create()
BGFXTransientIndexBuffer instance allocated with BufferUtils.public static BGFXTransientIndexBuffer create(long address)
BGFXTransientIndexBuffer instance for the specified memory address.@Nullable public static BGFXTransientIndexBuffer createSafe(long address)
public static BGFXTransientIndexBuffer.Buffer malloc(int capacity)
BGFXTransientIndexBuffer.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BGFXTransientIndexBuffer.Buffer calloc(int capacity)
BGFXTransientIndexBuffer.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BGFXTransientIndexBuffer.Buffer create(int capacity)
BGFXTransientIndexBuffer.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static BGFXTransientIndexBuffer.Buffer create(long address, int capacity)
BGFXTransientIndexBuffer.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static BGFXTransientIndexBuffer.Buffer createSafe(long address, int capacity)
public static BGFXTransientIndexBuffer mallocStack()
BGFXTransientIndexBuffer instance allocated on the thread-local MemoryStack.public static BGFXTransientIndexBuffer callocStack()
BGFXTransientIndexBuffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BGFXTransientIndexBuffer mallocStack(org.lwjgl.system.MemoryStack stack)
BGFXTransientIndexBuffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BGFXTransientIndexBuffer callocStack(org.lwjgl.system.MemoryStack stack)
BGFXTransientIndexBuffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static BGFXTransientIndexBuffer.Buffer mallocStack(int capacity)
BGFXTransientIndexBuffer.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static BGFXTransientIndexBuffer.Buffer callocStack(int capacity)
BGFXTransientIndexBuffer.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static BGFXTransientIndexBuffer.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BGFXTransientIndexBuffer.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static BGFXTransientIndexBuffer.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BGFXTransientIndexBuffer.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static java.nio.ByteBuffer ndata(long struct)
data.public static int nsize(long struct)
size().public static int nstartIndex(long struct)
startIndex().public static short nhandle(long struct)
handle().public static void ndata(long struct,
java.nio.ByteBuffer value)
data.public static void nsize(long struct,
int value)
size field of the specified struct.public static void nstartIndex(long struct,
int value)
startIndex.public static void nhandle(long struct,
short value)
handle.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.