Package org.lwjgl.bgfx
Class BGFXTransientIndexBuffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXTransientIndexBuffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class BGFXTransientIndexBuffer extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceTransient index buffer.Layout
struct bgfx_transient_index_buffer_t { uint8_t *data(); uint32_tsize(); uint32_tstartIndex(); bgfx_index_buffer_handle_thandle(); boolisIndex16(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBGFXTransientIndexBuffer.BufferAn array ofBGFXTransientIndexBufferstructs.
-
Constructor Summary
Constructors Constructor Description BGFXTransientIndexBuffer(java.nio.ByteBuffer container)Creates aBGFXTransientIndexBufferinstance 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 BGFXTransientIndexBuffercalloc()Returns a newBGFXTransientIndexBufferinstance allocated withmemCalloc.static BGFXTransientIndexBuffer.Buffercalloc(int capacity)Returns a newBGFXTransientIndexBuffer.Bufferinstance allocated withmemCalloc.static BGFXTransientIndexBuffer.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newBGFXTransientIndexBuffer.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXTransientIndexBuffercalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXTransientIndexBufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXTransientIndexBuffercallocStack()Deprecated.static BGFXTransientIndexBuffer.BuffercallocStack(int capacity)Deprecated.static BGFXTransientIndexBuffer.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXTransientIndexBuffercallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXTransientIndexBuffercreate()Returns a newBGFXTransientIndexBufferinstance allocated withBufferUtils.static BGFXTransientIndexBuffer.Buffercreate(int capacity)Returns a newBGFXTransientIndexBuffer.Bufferinstance allocated withBufferUtils.static BGFXTransientIndexBuffercreate(long address)Returns a newBGFXTransientIndexBufferinstance for the specified memory address.static BGFXTransientIndexBuffer.Buffercreate(long address, int capacity)Create aBGFXTransientIndexBuffer.Bufferinstance at the specified memory.static BGFXTransientIndexBuffercreateSafe(long address)static BGFXTransientIndexBuffer.BuffercreateSafe(long address, int capacity)java.nio.ByteBufferdata()pointer to dataBGFXTransientIndexBufferdata(java.nio.ByteBuffer value)Sets the address of the specifiedByteBufferto thedata()field.shorthandle()index buffer handleBGFXTransientIndexBufferhandle(short value)Sets the specified value to thehandle()field.booleanisIndex16()index buffer format is 16-bits if true, otherwise it is 32-bitBGFXTransientIndexBufferisIndex16(boolean value)Sets the specified value to theisIndex16()field.static BGFXTransientIndexBuffermalloc()Returns a newBGFXTransientIndexBufferinstance allocated withmemAlloc.static BGFXTransientIndexBuffer.Buffermalloc(int capacity)Returns a newBGFXTransientIndexBuffer.Bufferinstance allocated withmemAlloc.static BGFXTransientIndexBuffer.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newBGFXTransientIndexBuffer.Bufferinstance allocated on the specifiedMemoryStack.static BGFXTransientIndexBuffermalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXTransientIndexBufferinstance allocated on the specifiedMemoryStack.static BGFXTransientIndexBuffermallocStack()Deprecated.static BGFXTransientIndexBuffer.BuffermallocStack(int capacity)Deprecated.static BGFXTransientIndexBuffer.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXTransientIndexBuffermallocStack(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 booleannisIndex16(long struct)Unsafe version ofisIndex16().static voidnisIndex16(long struct, boolean value)Unsafe version ofisIndex16.static intnsize(long struct)Unsafe version ofsize().static voidnsize(long struct, int value)Sets the specified value to thesizefield of the specifiedstruct.static intnstartIndex(long struct)Unsafe version ofstartIndex().static voidnstartIndex(long struct, int value)Unsafe version ofstartIndex.BGFXTransientIndexBufferset(java.nio.ByteBuffer data, int startIndex, short handle, boolean isIndex16)Initializes this struct with the specified values.BGFXTransientIndexBufferset(BGFXTransientIndexBuffer src)Copies the specified struct data to this struct.intsize()data sizeintsizeof()intstartIndex()first indexBGFXTransientIndexBufferstartIndex(int value)Sets the specified value to thestartIndex()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
BGFXTransientIndexBuffer
public BGFXTransientIndexBuffer(java.nio.ByteBuffer container)
Creates aBGFXTransientIndexBufferinstance 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
-
startIndex
public int startIndex()
first index
-
handle
public short handle()
index buffer handle
-
isIndex16
public boolean isIndex16()
index buffer format is 16-bits if true, otherwise it is 32-bit
-
data
public BGFXTransientIndexBuffer data(java.nio.ByteBuffer value)
Sets the address of the specifiedByteBufferto thedata()field.
-
startIndex
public BGFXTransientIndexBuffer startIndex(int value)
Sets the specified value to thestartIndex()field.
-
handle
public BGFXTransientIndexBuffer handle(short value)
Sets the specified value to thehandle()field.
-
isIndex16
public BGFXTransientIndexBuffer isIndex16(boolean value)
Sets the specified value to theisIndex16()field.
-
set
public BGFXTransientIndexBuffer set(java.nio.ByteBuffer data, int startIndex, short handle, boolean isIndex16)
Initializes this struct with the specified values.
-
set
public BGFXTransientIndexBuffer set(BGFXTransientIndexBuffer src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static BGFXTransientIndexBuffer malloc()
Returns a newBGFXTransientIndexBufferinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static BGFXTransientIndexBuffer calloc()
Returns a newBGFXTransientIndexBufferinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static BGFXTransientIndexBuffer create()
Returns a newBGFXTransientIndexBufferinstance allocated withBufferUtils.
-
create
public static BGFXTransientIndexBuffer create(long address)
Returns a newBGFXTransientIndexBufferinstance for the specified memory address.
-
createSafe
@Nullable public static BGFXTransientIndexBuffer createSafe(long address)
-
malloc
public static BGFXTransientIndexBuffer.Buffer malloc(int capacity)
Returns a newBGFXTransientIndexBuffer.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static BGFXTransientIndexBuffer.Buffer calloc(int capacity)
Returns a newBGFXTransientIndexBuffer.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static BGFXTransientIndexBuffer.Buffer create(int capacity)
Returns a newBGFXTransientIndexBuffer.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static BGFXTransientIndexBuffer.Buffer create(long address, int capacity)
Create aBGFXTransientIndexBuffer.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static BGFXTransientIndexBuffer.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static BGFXTransientIndexBuffer mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXTransientIndexBuffer callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXTransientIndexBuffer mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXTransientIndexBuffer callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXTransientIndexBuffer.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXTransientIndexBuffer.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXTransientIndexBuffer.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 BGFXTransientIndexBuffer.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static BGFXTransientIndexBuffer malloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXTransientIndexBufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static BGFXTransientIndexBuffer calloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXTransientIndexBufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static BGFXTransientIndexBuffer.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBGFXTransientIndexBuffer.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static BGFXTransientIndexBuffer.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBGFXTransientIndexBuffer.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().
-
nstartIndex
public static int nstartIndex(long struct)
Unsafe version ofstartIndex().
-
nhandle
public static short nhandle(long struct)
Unsafe version ofhandle().
-
nisIndex16
public static boolean nisIndex16(long struct)
Unsafe version ofisIndex16().
-
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.
-
nstartIndex
public static void nstartIndex(long struct, int value)Unsafe version ofstartIndex.
-
nhandle
public static void nhandle(long struct, short value)Unsafe version ofhandle.
-
nisIndex16
public static void nisIndex16(long struct, boolean value)Unsafe version ofisIndex16.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-