public class AIMeshKey
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
mTime – The time of this keymValue –
Index into the AIMesh::mAnimMeshes array of the mesh coresponding to the AIMeshAnim hosting this key frame. The referenced anim mesh is
evaluated according to the rules defined in the docs for AIAnimMesh.
struct aiMeshKey {
double mTime;
unsigned int mValue;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIMeshKey.Buffer
An array of
AIMeshKey structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MTIME
The struct member offsets.
|
static int |
MVALUE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AIMeshKey(java.nio.ByteBuffer container)
Creates a
AIMeshKey instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIMeshKey |
calloc()
Returns a new
AIMeshKey instance allocated with memCalloc. |
static AIMeshKey.Buffer |
calloc(int capacity)
Returns a new
AIMeshKey.Buffer instance allocated with memCalloc. |
static AIMeshKey |
callocStack()
Returns a new
AIMeshKey instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMeshKey.Buffer |
callocStack(int capacity)
Returns a new
AIMeshKey.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMeshKey.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMeshKey.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIMeshKey |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMeshKey instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIMeshKey |
create()
Returns a new
AIMeshKey instance allocated with BufferUtils. |
static AIMeshKey.Buffer |
create(int capacity)
Returns a new
AIMeshKey.Buffer instance allocated with BufferUtils. |
static AIMeshKey |
create(long address)
Returns a new
AIMeshKey instance for the specified memory address. |
static AIMeshKey.Buffer |
create(long address,
int capacity)
Create a
AIMeshKey.Buffer instance at the specified memory. |
static AIMeshKey |
createSafe(long address)
|
static AIMeshKey.Buffer |
createSafe(long address,
int capacity)
|
static AIMeshKey |
malloc()
Returns a new
AIMeshKey instance allocated with memAlloc. |
static AIMeshKey.Buffer |
malloc(int capacity)
Returns a new
AIMeshKey.Buffer instance allocated with memAlloc. |
static AIMeshKey |
mallocStack()
Returns a new
AIMeshKey instance allocated on the thread-local MemoryStack. |
static AIMeshKey.Buffer |
mallocStack(int capacity)
Returns a new
AIMeshKey.Buffer instance allocated on the thread-local MemoryStack. |
static AIMeshKey.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMeshKey.Buffer instance allocated on the specified MemoryStack. |
static AIMeshKey |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMeshKey instance allocated on the specified MemoryStack. |
double |
mTime()
Returns the value of the
mTime field. |
AIMeshKey |
mTime(double value)
Sets the specified value to the
mTime field. |
int |
mValue()
Returns the value of the
mValue field. |
AIMeshKey |
mValue(int value)
Sets the specified value to the
mValue field. |
static double |
nmTime(long struct)
Unsafe version of
mTime(). |
static void |
nmTime(long struct,
double value)
Unsafe version of
mTime. |
static int |
nmValue(long struct)
Unsafe version of
mValue(). |
static void |
nmValue(long struct,
int value)
Unsafe version of
mValue. |
AIMeshKey |
set(AIMeshKey src)
Copies the specified struct data to this struct.
|
AIMeshKey |
set(double mTime,
int mValue)
Initializes this struct with the specified values.
|
int |
sizeof() |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MTIME
public static final int MVALUE
public AIMeshKey(java.nio.ByteBuffer container)
AIMeshKey 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 double mTime()
mTime field.public int mValue()
mValue field.public AIMeshKey mTime(double value)
mTime field.public AIMeshKey mValue(int value)
mValue field.public AIMeshKey set(double mTime, int mValue)
public AIMeshKey set(AIMeshKey src)
src - the source structpublic static AIMeshKey malloc()
AIMeshKey instance allocated with memAlloc. The instance must be explicitly freed.public static AIMeshKey calloc()
AIMeshKey instance allocated with memCalloc. The instance must be explicitly freed.public static AIMeshKey create()
AIMeshKey instance allocated with BufferUtils.public static AIMeshKey create(long address)
AIMeshKey instance for the specified memory address.@Nullable public static AIMeshKey createSafe(long address)
public static AIMeshKey.Buffer malloc(int capacity)
AIMeshKey.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMeshKey.Buffer calloc(int capacity)
AIMeshKey.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMeshKey.Buffer create(int capacity)
AIMeshKey.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIMeshKey.Buffer create(long address, int capacity)
AIMeshKey.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIMeshKey.Buffer createSafe(long address, int capacity)
public static AIMeshKey mallocStack()
AIMeshKey instance allocated on the thread-local MemoryStack.public static AIMeshKey callocStack()
AIMeshKey instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIMeshKey mallocStack(org.lwjgl.system.MemoryStack stack)
AIMeshKey instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIMeshKey callocStack(org.lwjgl.system.MemoryStack stack)
AIMeshKey instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIMeshKey.Buffer mallocStack(int capacity)
AIMeshKey.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIMeshKey.Buffer callocStack(int capacity)
AIMeshKey.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIMeshKey.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMeshKey.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIMeshKey.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMeshKey.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 double nmTime(long struct)
mTime().public static int nmValue(long struct)
mValue().public static void nmTime(long struct,
double value)
mTime.public static void nmValue(long struct,
int value)
mValue.Copyright LWJGL. All Rights Reserved. License terms.