Package org.lwjgl.bgfx
Class BGFXTransientVertexBuffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXTransientVertexBuffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class BGFXTransientVertexBuffer extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceTransient vertex buffer.Layout
struct bgfx_transient_vertex_buffer_t { uint8_t *data(); uint32_tsize(); uint32_tstartVertex(); uint16_tstride(); bgfx_vertex_buffer_handle_thandle(); bgfx_vertex_layout_handle_tlayoutHandle(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBGFXTransientVertexBuffer.BufferAn array ofBGFXTransientVertexBufferstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDATA
HANDLE
LAYOUTHANDLE
SIZEThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTARTVERTEX
STRIDEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description BGFXTransientVertexBuffer(java.nio.ByteBuffer container)Creates aBGFXTransientVertexBufferinstance 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 BGFXTransientVertexBuffercalloc()Returns a newBGFXTransientVertexBufferinstance allocated withmemCalloc.static BGFXTransientVertexBuffer.Buffercalloc(int capacity)Returns a newBGFXTransientVertexBuffer.Bufferinstance allocated withmemCalloc.static BGFXTransientVertexBuffer.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newBGFXTransientVertexBuffer.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXTransientVertexBuffercalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXTransientVertexBufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXTransientVertexBuffercallocStack()Deprecated.static BGFXTransientVertexBuffer.BuffercallocStack(int capacity)Deprecated.static BGFXTransientVertexBuffer.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXTransientVertexBuffercallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXTransientVertexBuffercreate()Returns a newBGFXTransientVertexBufferinstance allocated withBufferUtils.static BGFXTransientVertexBuffer.Buffercreate(int capacity)Returns a newBGFXTransientVertexBuffer.Bufferinstance allocated withBufferUtils.static BGFXTransientVertexBuffercreate(long address)Returns a newBGFXTransientVertexBufferinstance for the specified memory address.static BGFXTransientVertexBuffer.Buffercreate(long address, int capacity)Create aBGFXTransientVertexBuffer.Bufferinstance at the specified memory.static BGFXTransientVertexBuffercreateSafe(long address)static BGFXTransientVertexBuffer.BuffercreateSafe(long address, int capacity)java.nio.ByteBufferdata()pointer to dataBGFXTransientVertexBufferdata(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thedata()field.shorthandle()vertex buffer handleBGFXTransientVertexBufferhandle(short value)Sets the specified value to thehandle()field.shortlayoutHandle()vertex layout handleBGFXTransientVertexBufferlayoutHandle(short value)Sets the specified value to thelayoutHandle()field.static BGFXTransientVertexBuffermalloc()Returns a newBGFXTransientVertexBufferinstance allocated withmemAlloc.static BGFXTransientVertexBuffer.Buffermalloc(int capacity)Returns a newBGFXTransientVertexBuffer.Bufferinstance allocated withmemAlloc.static BGFXTransientVertexBuffer.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newBGFXTransientVertexBuffer.Bufferinstance allocated on the specifiedMemoryStack.static BGFXTransientVertexBuffermalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXTransientVertexBufferinstance allocated on the specifiedMemoryStack.static BGFXTransientVertexBuffermallocStack()Deprecated.static BGFXTransientVertexBuffer.BuffermallocStack(int capacity)Deprecated.static BGFXTransientVertexBuffer.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXTransientVertexBuffermallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static java.nio.ByteBufferndata(long struct)Unsafe version ofdata.static voidndata(long struct, java.nio.ByteBuffer value)Unsafe version ofdata.static shortnhandle(long struct)Unsafe version ofhandle().static voidnhandle(long struct, short value)Unsafe version ofhandle.static shortnlayoutHandle(long struct)Unsafe version oflayoutHandle().static voidnlayoutHandle(long struct, short value)Unsafe version oflayoutHandle.static intnsize(long struct)Unsafe version ofsize().static voidnsize(long struct, int value)Sets the specified value to thesizefield of the specifiedstruct.static intnstartVertex(long struct)Unsafe version ofstartVertex().static voidnstartVertex(long struct, int value)Unsafe version ofstartVertex.static shortnstride(long struct)Unsafe version ofstride().static voidnstride(long struct, short value)Unsafe version ofstride.BGFXTransientVertexBufferset(java.nio.ByteBuffer data, int startVertex, short stride, short handle, short layoutHandle)Initializes this struct with the specified values.BGFXTransientVertexBufferset(BGFXTransientVertexBuffer src)Copies the specified struct data to this struct.intsize()data sizeintsizeof()intstartVertex()first vertexBGFXTransientVertexBufferstartVertex(int value)Sets the specified value to thestartVertex()field.shortstride()vertex strideBGFXTransientVertexBufferstride(short value)Sets the specified value to thestride()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
BGFXTransientVertexBuffer
public BGFXTransientVertexBuffer(java.nio.ByteBuffer container)
Creates aBGFXTransientVertexBufferinstance 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
-
data
public java.nio.ByteBuffer data()
pointer to data
-
size
public int size()
data size
-
startVertex
public int startVertex()
first vertex
-
stride
public short stride()
vertex stride
-
handle
public short handle()
vertex buffer handle
-
layoutHandle
public short layoutHandle()
vertex layout handle
-
data
public BGFXTransientVertexBuffer data(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thedata()field.
-
startVertex
public BGFXTransientVertexBuffer startVertex(int value)
Sets the specified value to thestartVertex()field.
-
stride
public BGFXTransientVertexBuffer stride(short value)
Sets the specified value to thestride()field.
-
handle
public BGFXTransientVertexBuffer handle(short value)
Sets the specified value to thehandle()field.
-
layoutHandle
public BGFXTransientVertexBuffer layoutHandle(short value)
Sets the specified value to thelayoutHandle()field.
-
set
public BGFXTransientVertexBuffer set(java.nio.ByteBuffer data, int startVertex, short stride, short handle, short layoutHandle)
Initializes this struct with the specified values.
-
set
public BGFXTransientVertexBuffer set(BGFXTransientVertexBuffer src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static BGFXTransientVertexBuffer malloc()
Returns a newBGFXTransientVertexBufferinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static BGFXTransientVertexBuffer calloc()
Returns a newBGFXTransientVertexBufferinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static BGFXTransientVertexBuffer create()
Returns a newBGFXTransientVertexBufferinstance allocated withBufferUtils.
-
create
public static BGFXTransientVertexBuffer create(long address)
Returns a newBGFXTransientVertexBufferinstance for the specified memory address.
-
createSafe
@Nullable public static BGFXTransientVertexBuffer createSafe(long address)
-
malloc
public static BGFXTransientVertexBuffer.Buffer malloc(int capacity)
Returns a newBGFXTransientVertexBuffer.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static BGFXTransientVertexBuffer.Buffer calloc(int capacity)
Returns a newBGFXTransientVertexBuffer.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static BGFXTransientVertexBuffer.Buffer create(int capacity)
Returns a newBGFXTransientVertexBuffer.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static BGFXTransientVertexBuffer.Buffer create(long address, int capacity)
Create aBGFXTransientVertexBuffer.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static BGFXTransientVertexBuffer.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static BGFXTransientVertexBuffer mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXTransientVertexBuffer callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXTransientVertexBuffer mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXTransientVertexBuffer callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXTransientVertexBuffer.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXTransientVertexBuffer.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXTransientVertexBuffer.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXTransientVertexBuffer.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static BGFXTransientVertexBuffer malloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXTransientVertexBufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static BGFXTransientVertexBuffer calloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXTransientVertexBufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static BGFXTransientVertexBuffer.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBGFXTransientVertexBuffer.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static BGFXTransientVertexBuffer.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBGFXTransientVertexBuffer.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
ndata
public static java.nio.ByteBuffer ndata(long struct)
Unsafe version ofdata.
-
nsize
public static int nsize(long struct)
Unsafe version ofsize().
-
nstartVertex
public static int nstartVertex(long struct)
Unsafe version ofstartVertex().
-
nstride
public static short nstride(long struct)
Unsafe version ofstride().
-
nhandle
public static short nhandle(long struct)
Unsafe version ofhandle().
-
nlayoutHandle
public static short nlayoutHandle(long struct)
Unsafe version oflayoutHandle().
-
ndata
public static void ndata(long struct, java.nio.ByteBuffer value)Unsafe version ofdata.
-
nsize
public static void nsize(long struct, int value)Sets the specified value to thesizefield of the specifiedstruct.
-
nstartVertex
public static void nstartVertex(long struct, int value)Unsafe version ofstartVertex.
-
nstride
public static void nstride(long struct, short value)Unsafe version ofstride.
-
nhandle
public static void nhandle(long struct, short value)Unsafe version ofhandle.
-
nlayoutHandle
public static void nlayoutHandle(long struct, short value)Unsafe version oflayoutHandle.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-