public class BGFXTransientVertexBuffer
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
data – pointer to datasize – data sizestartVertex – first vertexstride – vertex stridehandle – vertex buffer handlelayoutHandle – vertex layout handle
struct bgfx_transient_vertex_buffer_t {
uint8_t * data;
uint32_t size;
uint32_t startVertex;
uint16_t stride;
bgfx_vertex_buffer_handle_t handle;
bgfx_vertex_layout_handle_t layoutHandle;
}| Modifier and Type | Class and Description |
|---|---|
static class |
BGFXTransientVertexBuffer.Buffer
An array of
BGFXTransientVertexBuffer 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 |
LAYOUTHANDLE
The struct member offsets.
|
static int |
SIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STARTVERTEX
The struct member offsets.
|
static int |
STRIDE
The struct member offsets.
|
| Constructor and Description |
|---|
BGFXTransientVertexBuffer(java.nio.ByteBuffer container)
Creates a
BGFXTransientVertexBuffer instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static BGFXTransientVertexBuffer |
calloc()
Returns a new
BGFXTransientVertexBuffer instance allocated with memCalloc. |
static BGFXTransientVertexBuffer.Buffer |
calloc(int capacity)
Returns a new
BGFXTransientVertexBuffer.Buffer instance allocated with memCalloc. |
static BGFXTransientVertexBuffer |
callocStack()
Returns a new
BGFXTransientVertexBuffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXTransientVertexBuffer.Buffer |
callocStack(int capacity)
Returns a new
BGFXTransientVertexBuffer.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXTransientVertexBuffer.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTransientVertexBuffer.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXTransientVertexBuffer |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTransientVertexBuffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXTransientVertexBuffer |
create()
Returns a new
BGFXTransientVertexBuffer instance allocated with BufferUtils. |
static BGFXTransientVertexBuffer.Buffer |
create(int capacity)
Returns a new
BGFXTransientVertexBuffer.Buffer instance allocated with BufferUtils. |
static BGFXTransientVertexBuffer |
create(long address)
Returns a new
BGFXTransientVertexBuffer instance for the specified memory address. |
static BGFXTransientVertexBuffer.Buffer |
create(long address,
int capacity)
Create a
BGFXTransientVertexBuffer.Buffer instance at the specified memory. |
static BGFXTransientVertexBuffer |
createSafe(long address)
|
static BGFXTransientVertexBuffer.Buffer |
createSafe(long address,
int capacity)
|
java.nio.ByteBuffer |
data()
Returns a
ByteBuffer view of the data pointed to by the data field. |
BGFXTransientVertexBuffer |
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. |
BGFXTransientVertexBuffer |
handle(short value)
Sets the specified value to the
handle field. |
short |
layoutHandle()
Returns the value of the
layoutHandle field. |
BGFXTransientVertexBuffer |
layoutHandle(short value)
Sets the specified value to the
layoutHandle field. |
static BGFXTransientVertexBuffer |
malloc()
Returns a new
BGFXTransientVertexBuffer instance allocated with memAlloc. |
static BGFXTransientVertexBuffer.Buffer |
malloc(int capacity)
Returns a new
BGFXTransientVertexBuffer.Buffer instance allocated with memAlloc. |
static BGFXTransientVertexBuffer |
mallocStack()
Returns a new
BGFXTransientVertexBuffer instance allocated on the thread-local MemoryStack. |
static BGFXTransientVertexBuffer.Buffer |
mallocStack(int capacity)
Returns a new
BGFXTransientVertexBuffer.Buffer instance allocated on the thread-local MemoryStack. |
static BGFXTransientVertexBuffer.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTransientVertexBuffer.Buffer instance allocated on the specified MemoryStack. |
static BGFXTransientVertexBuffer |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTransientVertexBuffer 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 short |
nlayoutHandle(long struct)
Unsafe version of
layoutHandle(). |
static void |
nlayoutHandle(long struct,
short value)
Unsafe version of
layoutHandle. |
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 |
nstartVertex(long struct)
Unsafe version of
startVertex(). |
static void |
nstartVertex(long struct,
int value)
Unsafe version of
startVertex. |
static short |
nstride(long struct)
Unsafe version of
stride(). |
static void |
nstride(long struct,
short value)
Unsafe version of
stride. |
BGFXTransientVertexBuffer |
set(BGFXTransientVertexBuffer src)
Copies the specified struct data to this struct.
|
BGFXTransientVertexBuffer |
set(java.nio.ByteBuffer data,
int startVertex,
short stride,
short handle,
short layoutHandle)
Initializes this struct with the specified values.
|
int |
size()
Returns the value of the
size field. |
int |
sizeof() |
int |
startVertex()
Returns the value of the
startVertex field. |
BGFXTransientVertexBuffer |
startVertex(int value)
Sets the specified value to the
startVertex field. |
short |
stride()
Returns the value of the
stride field. |
BGFXTransientVertexBuffer |
stride(short value)
Sets the specified value to the
stride 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 STARTVERTEX
public static final int STRIDE
public static final int HANDLE
public static final int LAYOUTHANDLE
public BGFXTransientVertexBuffer(java.nio.ByteBuffer container)
BGFXTransientVertexBuffer 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 startVertex()
startVertex field.public short stride()
stride field.public short handle()
handle field.public short layoutHandle()
layoutHandle field.public BGFXTransientVertexBuffer data(java.nio.ByteBuffer value)
ByteBuffer to the data field.public BGFXTransientVertexBuffer startVertex(int value)
startVertex field.public BGFXTransientVertexBuffer stride(short value)
stride field.public BGFXTransientVertexBuffer handle(short value)
handle field.public BGFXTransientVertexBuffer layoutHandle(short value)
layoutHandle field.public BGFXTransientVertexBuffer set(java.nio.ByteBuffer data, int startVertex, short stride, short handle, short layoutHandle)
public BGFXTransientVertexBuffer set(BGFXTransientVertexBuffer src)
src - the source structpublic static BGFXTransientVertexBuffer malloc()
BGFXTransientVertexBuffer instance allocated with memAlloc. The instance must be explicitly freed.public static BGFXTransientVertexBuffer calloc()
BGFXTransientVertexBuffer instance allocated with memCalloc. The instance must be explicitly freed.public static BGFXTransientVertexBuffer create()
BGFXTransientVertexBuffer instance allocated with BufferUtils.public static BGFXTransientVertexBuffer create(long address)
BGFXTransientVertexBuffer instance for the specified memory address.@Nullable public static BGFXTransientVertexBuffer createSafe(long address)
public static BGFXTransientVertexBuffer.Buffer malloc(int capacity)
BGFXTransientVertexBuffer.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BGFXTransientVertexBuffer.Buffer calloc(int capacity)
BGFXTransientVertexBuffer.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BGFXTransientVertexBuffer.Buffer create(int capacity)
BGFXTransientVertexBuffer.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static BGFXTransientVertexBuffer.Buffer create(long address, int capacity)
BGFXTransientVertexBuffer.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static BGFXTransientVertexBuffer.Buffer createSafe(long address, int capacity)
public static BGFXTransientVertexBuffer mallocStack()
BGFXTransientVertexBuffer instance allocated on the thread-local MemoryStack.public static BGFXTransientVertexBuffer callocStack()
BGFXTransientVertexBuffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BGFXTransientVertexBuffer mallocStack(org.lwjgl.system.MemoryStack stack)
BGFXTransientVertexBuffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BGFXTransientVertexBuffer callocStack(org.lwjgl.system.MemoryStack stack)
BGFXTransientVertexBuffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static BGFXTransientVertexBuffer.Buffer mallocStack(int capacity)
BGFXTransientVertexBuffer.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static BGFXTransientVertexBuffer.Buffer callocStack(int capacity)
BGFXTransientVertexBuffer.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static BGFXTransientVertexBuffer.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BGFXTransientVertexBuffer.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static BGFXTransientVertexBuffer.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BGFXTransientVertexBuffer.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 nstartVertex(long struct)
startVertex().public static short nstride(long struct)
stride().public static short nhandle(long struct)
handle().public static short nlayoutHandle(long struct)
layoutHandle().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 nstartVertex(long struct,
int value)
startVertex.public static void nstride(long struct,
short value)
stride.public static void nhandle(long struct,
short value)
handle.public static void nlayoutHandle(long struct,
short value)
layoutHandle.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.