Package org.lwjgl.bgfx
Class BGFXTransform
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXTransform
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class BGFXTransform extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBGFXTransform.BufferAn array ofBGFXTransformstructs.
-
Constructor Summary
Constructors Constructor Description BGFXTransform(java.nio.ByteBuffer container)Creates aBGFXTransforminstance 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 BGFXTransformcalloc()Returns a newBGFXTransforminstance allocated withmemCalloc.static BGFXTransform.Buffercalloc(int capacity)Returns a newBGFXTransform.Bufferinstance allocated withmemCalloc.static BGFXTransform.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newBGFXTransform.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXTransformcalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXTransforminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static BGFXTransformcallocStack()Deprecated.static BGFXTransform.BuffercallocStack(int capacity)Deprecated.static BGFXTransform.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXTransformcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXTransformcreate()Returns a newBGFXTransforminstance allocated withBufferUtils.static BGFXTransform.Buffercreate(int capacity)Returns a newBGFXTransform.Bufferinstance allocated withBufferUtils.static BGFXTransformcreate(long address)Returns a newBGFXTransforminstance for the specified memory address.static BGFXTransform.Buffercreate(long address, int capacity)Create aBGFXTransform.Bufferinstance at the specified memory.static BGFXTransformcreateSafe(long address)static BGFXTransform.BuffercreateSafe(long address, int capacity)java.nio.FloatBufferdata()pointer to first 4x4 matrixstatic BGFXTransformmalloc()Returns a newBGFXTransforminstance allocated withmemAlloc.static BGFXTransform.Buffermalloc(int capacity)Returns a newBGFXTransform.Bufferinstance allocated withmemAlloc.static BGFXTransform.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newBGFXTransform.Bufferinstance allocated on the specifiedMemoryStack.static BGFXTransformmalloc(org.lwjgl.system.MemoryStack stack)Returns a newBGFXTransforminstance allocated on the specifiedMemoryStack.static BGFXTransformmallocStack()Deprecated.static BGFXTransform.BuffermallocStack(int capacity)Deprecated.static BGFXTransform.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static BGFXTransformmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static java.nio.FloatBufferndata(long struct)Unsafe version ofdata.static shortnnum(long struct)Unsafe version ofnum().shortnum()number of matricesintsizeof()
-
-
-
Constructor Detail
-
BGFXTransform
public BGFXTransform(java.nio.ByteBuffer container)
Creates aBGFXTransforminstance 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.FloatBuffer data()
pointer to first 4x4 matrix
-
num
public short num()
number of matrices
-
malloc
public static BGFXTransform malloc()
Returns a newBGFXTransforminstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static BGFXTransform calloc()
Returns a newBGFXTransforminstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static BGFXTransform create()
Returns a newBGFXTransforminstance allocated withBufferUtils.
-
create
public static BGFXTransform create(long address)
Returns a newBGFXTransforminstance for the specified memory address.
-
createSafe
@Nullable public static BGFXTransform createSafe(long address)
-
malloc
public static BGFXTransform.Buffer malloc(int capacity)
Returns a newBGFXTransform.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static BGFXTransform.Buffer calloc(int capacity)
Returns a newBGFXTransform.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static BGFXTransform.Buffer create(int capacity)
Returns a newBGFXTransform.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static BGFXTransform.Buffer create(long address, int capacity)
Create aBGFXTransform.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static BGFXTransform.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static BGFXTransform mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXTransform callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXTransform mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXTransform callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXTransform.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static BGFXTransform.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static BGFXTransform.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 BGFXTransform.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static BGFXTransform malloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXTransforminstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static BGFXTransform calloc(org.lwjgl.system.MemoryStack stack)
Returns a newBGFXTransforminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static BGFXTransform.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBGFXTransform.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static BGFXTransform.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newBGFXTransform.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.FloatBuffer ndata(long struct)
Unsafe version ofdata.
-
nnum
public static short nnum(long struct)
Unsafe version ofnum().
-
-