public class BGFXTransform
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
data – pointer to first 4x4 matrixnum – number of matrices
struct bgfx_transform_t {
float * data;
uint16_t num;
}| Modifier and Type | Class and Description |
|---|---|
static class |
BGFXTransform.Buffer
An array of
BGFXTransform structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DATA
The struct member offsets.
|
static int |
NUM
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
BGFXTransform(java.nio.ByteBuffer container)
Creates a
BGFXTransform instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static BGFXTransform |
calloc()
Returns a new
BGFXTransform instance allocated with memCalloc. |
static BGFXTransform.Buffer |
calloc(int capacity)
Returns a new
BGFXTransform.Buffer instance allocated with memCalloc. |
static BGFXTransform |
callocStack()
Returns a new
BGFXTransform instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXTransform.Buffer |
callocStack(int capacity)
Returns a new
BGFXTransform.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static BGFXTransform.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTransform.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXTransform |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTransform instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static BGFXTransform |
create()
Returns a new
BGFXTransform instance allocated with BufferUtils. |
static BGFXTransform.Buffer |
create(int capacity)
Returns a new
BGFXTransform.Buffer instance allocated with BufferUtils. |
static BGFXTransform |
create(long address)
Returns a new
BGFXTransform instance for the specified memory address. |
static BGFXTransform.Buffer |
create(long address,
int capacity)
Create a
BGFXTransform.Buffer instance at the specified memory. |
static BGFXTransform |
createSafe(long address)
|
static BGFXTransform.Buffer |
createSafe(long address,
int capacity)
|
java.nio.FloatBuffer |
data()
Returns a
FloatBuffer view of the data pointed to by the data field. |
static BGFXTransform |
malloc()
Returns a new
BGFXTransform instance allocated with memAlloc. |
static BGFXTransform.Buffer |
malloc(int capacity)
Returns a new
BGFXTransform.Buffer instance allocated with memAlloc. |
static BGFXTransform |
mallocStack()
Returns a new
BGFXTransform instance allocated on the thread-local MemoryStack. |
static BGFXTransform.Buffer |
mallocStack(int capacity)
Returns a new
BGFXTransform.Buffer instance allocated on the thread-local MemoryStack. |
static BGFXTransform.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTransform.Buffer instance allocated on the specified MemoryStack. |
static BGFXTransform |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
BGFXTransform instance allocated on the specified MemoryStack. |
static java.nio.FloatBuffer |
ndata(long struct)
Unsafe version of
data. |
static short |
nnum(long struct)
Unsafe version of
num(). |
short |
num()
Returns the value of the
num field. |
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int DATA
public static final int NUM
public BGFXTransform(java.nio.ByteBuffer container)
BGFXTransform 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.FloatBuffer data()
FloatBuffer view of the data pointed to by the data field.public short num()
num field.public static BGFXTransform malloc()
BGFXTransform instance allocated with memAlloc. The instance must be explicitly freed.public static BGFXTransform calloc()
BGFXTransform instance allocated with memCalloc. The instance must be explicitly freed.public static BGFXTransform create()
BGFXTransform instance allocated with BufferUtils.public static BGFXTransform create(long address)
BGFXTransform instance for the specified memory address.@Nullable public static BGFXTransform createSafe(long address)
public static BGFXTransform.Buffer malloc(int capacity)
BGFXTransform.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BGFXTransform.Buffer calloc(int capacity)
BGFXTransform.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static BGFXTransform.Buffer create(int capacity)
BGFXTransform.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static BGFXTransform.Buffer create(long address, int capacity)
BGFXTransform.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static BGFXTransform.Buffer createSafe(long address, int capacity)
public static BGFXTransform mallocStack()
BGFXTransform instance allocated on the thread-local MemoryStack.public static BGFXTransform callocStack()
BGFXTransform instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static BGFXTransform mallocStack(org.lwjgl.system.MemoryStack stack)
BGFXTransform instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static BGFXTransform callocStack(org.lwjgl.system.MemoryStack stack)
BGFXTransform instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static BGFXTransform.Buffer mallocStack(int capacity)
BGFXTransform.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static BGFXTransform.Buffer callocStack(int capacity)
BGFXTransform.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static BGFXTransform.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BGFXTransform.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static BGFXTransform.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
BGFXTransform.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.FloatBuffer ndata(long struct)
data.public static short nnum(long struct)
num().Copyright LWJGL. All Rights Reserved. License terms.