public class AIQuatKey
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
mTime – The time of this keymValue – The value of this key
struct aiQuatKey {
double mTime;
struct aiQuaternion mValue;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIQuatKey.Buffer
An array of
AIQuatKey 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 |
|---|
AIQuatKey(java.nio.ByteBuffer container)
Creates a
AIQuatKey instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIQuatKey |
calloc()
Returns a new
AIQuatKey instance allocated with memCalloc. |
static AIQuatKey.Buffer |
calloc(int capacity)
Returns a new
AIQuatKey.Buffer instance allocated with memCalloc. |
static AIQuatKey |
callocStack()
Returns a new
AIQuatKey instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIQuatKey.Buffer |
callocStack(int capacity)
Returns a new
AIQuatKey.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIQuatKey.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIQuatKey.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIQuatKey |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIQuatKey instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIQuatKey |
create()
Returns a new
AIQuatKey instance allocated with BufferUtils. |
static AIQuatKey.Buffer |
create(int capacity)
Returns a new
AIQuatKey.Buffer instance allocated with BufferUtils. |
static AIQuatKey |
create(long address)
Returns a new
AIQuatKey instance for the specified memory address. |
static AIQuatKey.Buffer |
create(long address,
int capacity)
Create a
AIQuatKey.Buffer instance at the specified memory. |
static AIQuatKey |
createSafe(long address)
|
static AIQuatKey.Buffer |
createSafe(long address,
int capacity)
|
static AIQuatKey |
malloc()
Returns a new
AIQuatKey instance allocated with memAlloc. |
static AIQuatKey.Buffer |
malloc(int capacity)
Returns a new
AIQuatKey.Buffer instance allocated with memAlloc. |
static AIQuatKey |
mallocStack()
Returns a new
AIQuatKey instance allocated on the thread-local MemoryStack. |
static AIQuatKey.Buffer |
mallocStack(int capacity)
Returns a new
AIQuatKey.Buffer instance allocated on the thread-local MemoryStack. |
static AIQuatKey.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIQuatKey.Buffer instance allocated on the specified MemoryStack. |
static AIQuatKey |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIQuatKey instance allocated on the specified MemoryStack. |
double |
mTime()
Returns the value of the
mTime field. |
AIQuatKey |
mTime(double value)
Sets the specified value to the
mTime field. |
AIQuaternion |
mValue()
Returns a
AIQuaternion view of the mValue field. |
AIQuatKey |
mValue(AIQuaternion value)
Copies the specified
AIQuaternion to the mValue field. |
AIQuatKey |
mValue(java.util.function.Consumer<AIQuaternion> consumer)
Passes the
mValue field to the specified Consumer. |
static double |
nmTime(long struct)
Unsafe version of
mTime(). |
static void |
nmTime(long struct,
double value)
Unsafe version of
mTime. |
static AIQuaternion |
nmValue(long struct)
Unsafe version of
mValue(). |
static void |
nmValue(long struct,
AIQuaternion value)
Unsafe version of
mValue. |
AIQuatKey |
set(AIQuatKey src)
Copies the specified struct data to this struct.
|
AIQuatKey |
set(double mTime,
AIQuaternion 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 AIQuatKey(java.nio.ByteBuffer container)
AIQuatKey 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 AIQuaternion mValue()
AIQuaternion view of the mValue field.public AIQuatKey mTime(double value)
mTime field.public AIQuatKey mValue(AIQuaternion value)
AIQuaternion to the mValue field.public AIQuatKey mValue(java.util.function.Consumer<AIQuaternion> consumer)
mValue field to the specified Consumer.public AIQuatKey set(double mTime, AIQuaternion mValue)
public AIQuatKey set(AIQuatKey src)
src - the source structpublic static AIQuatKey malloc()
AIQuatKey instance allocated with memAlloc. The instance must be explicitly freed.public static AIQuatKey calloc()
AIQuatKey instance allocated with memCalloc. The instance must be explicitly freed.public static AIQuatKey create()
AIQuatKey instance allocated with BufferUtils.public static AIQuatKey create(long address)
AIQuatKey instance for the specified memory address.@Nullable public static AIQuatKey createSafe(long address)
public static AIQuatKey.Buffer malloc(int capacity)
AIQuatKey.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIQuatKey.Buffer calloc(int capacity)
AIQuatKey.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIQuatKey.Buffer create(int capacity)
AIQuatKey.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIQuatKey.Buffer create(long address, int capacity)
AIQuatKey.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIQuatKey.Buffer createSafe(long address, int capacity)
public static AIQuatKey mallocStack()
AIQuatKey instance allocated on the thread-local MemoryStack.public static AIQuatKey callocStack()
AIQuatKey instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIQuatKey mallocStack(org.lwjgl.system.MemoryStack stack)
AIQuatKey instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIQuatKey callocStack(org.lwjgl.system.MemoryStack stack)
AIQuatKey instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIQuatKey.Buffer mallocStack(int capacity)
AIQuatKey.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIQuatKey.Buffer callocStack(int capacity)
AIQuatKey.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIQuatKey.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIQuatKey.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIQuatKey.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIQuatKey.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 AIQuaternion nmValue(long struct)
mValue().public static void nmTime(long struct,
double value)
mTime.public static void nmValue(long struct,
AIQuaternion value)
mValue.Copyright LWJGL. All Rights Reserved. License terms.