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