public class AINodeAnim
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
This means all keys are absolute and not relative to the bone default pose. The order in which the transformations are applied is - as usual - scaling, rotation, translation.
All keys are returned in their correct, chronological order. Duplicate keys don't pass the validation step. Most likely there will be no negative time values, but they are not forbidden also ( so implementations need to cope with them! )
mNodeName – The name of the node affected by this animation. The node must exist and it must be unique.mNumPositionKeys – The number of position keysmPositionKeys –
The position keys of this animation channel. Positions are specified as 3D vector. The array is mNumPositionKeys in size. If there are position
keys, there will also be at least one scaling and one rotation key.mNumRotationKeys – The number of rotation keysmRotationKeys –
The rotation keys of this animation channel. Rotations are given as quaternions, which are 4D vectors. The array is mNumRotationKeys in size.
If there are rotation keys, there will also be at least one scaling and one position key.mNumScalingKeys – The number of scaling keysmScalingKeys –
The scaling keys of this animation channel. Scalings are specified as 3D vector. The array is mNumScalingKeys in size. If there are scaling
keys, there will also be at least one position and one rotation key.mPreState – Defines how the animation behaves before the first key is encountered. The default value is aiAnimBehaviour_DEFAULT (the original transformation matrix
of the affected node is used). One of:AnimBehaviour_DEFAULT | AnimBehaviour_CONSTANT | AnimBehaviour_LINEAR |
AnimBehaviour_REPEAT |
mPostState – Defines how the animation behaves after the last key was processed. The default value is aiAnimBehaviour_DEFAULT (the original transformation matrix of
the affected node is taken). One of:AnimBehaviour_DEFAULT | AnimBehaviour_CONSTANT | AnimBehaviour_LINEAR |
AnimBehaviour_REPEAT |
struct aiNodeAnim {
struct aiString mNodeName;
unsigned int mNumPositionKeys;
struct aiVectorKey * mPositionKeys;
unsigned int mNumRotationKeys;
struct aiQuatKey * mRotationKeys;
unsigned int mNumScalingKeys;
struct aiVectorKey * mScalingKeys;
aiAnimBehaviour mPreState;
aiAnimBehaviour mPostState;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AINodeAnim.Buffer
An array of
AINodeAnim structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MNODENAME
The struct member offsets.
|
static int |
MNUMPOSITIONKEYS
The struct member offsets.
|
static int |
MNUMROTATIONKEYS
The struct member offsets.
|
static int |
MNUMSCALINGKEYS
The struct member offsets.
|
static int |
MPOSITIONKEYS
The struct member offsets.
|
static int |
MPOSTSTATE
The struct member offsets.
|
static int |
MPRESTATE
The struct member offsets.
|
static int |
MROTATIONKEYS
The struct member offsets.
|
static int |
MSCALINGKEYS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AINodeAnim(java.nio.ByteBuffer container)
Creates a
AINodeAnim instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AINodeAnim |
calloc()
Returns a new
AINodeAnim instance allocated with memCalloc. |
static AINodeAnim.Buffer |
calloc(int capacity)
Returns a new
AINodeAnim.Buffer instance allocated with memCalloc. |
static AINodeAnim |
callocStack()
Returns a new
AINodeAnim instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AINodeAnim.Buffer |
callocStack(int capacity)
Returns a new
AINodeAnim.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AINodeAnim.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AINodeAnim.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AINodeAnim |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AINodeAnim instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AINodeAnim |
create()
Returns a new
AINodeAnim instance allocated with BufferUtils. |
static AINodeAnim.Buffer |
create(int capacity)
Returns a new
AINodeAnim.Buffer instance allocated with BufferUtils. |
static AINodeAnim |
create(long address)
Returns a new
AINodeAnim instance for the specified memory address. |
static AINodeAnim.Buffer |
create(long address,
int capacity)
Create a
AINodeAnim.Buffer instance at the specified memory. |
static AINodeAnim |
createSafe(long address)
|
static AINodeAnim.Buffer |
createSafe(long address,
int capacity)
|
static AINodeAnim |
malloc()
Returns a new
AINodeAnim instance allocated with memAlloc. |
static AINodeAnim.Buffer |
malloc(int capacity)
Returns a new
AINodeAnim.Buffer instance allocated with memAlloc. |
static AINodeAnim |
mallocStack()
Returns a new
AINodeAnim instance allocated on the thread-local MemoryStack. |
static AINodeAnim.Buffer |
mallocStack(int capacity)
Returns a new
AINodeAnim.Buffer instance allocated on the thread-local MemoryStack. |
static AINodeAnim.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AINodeAnim.Buffer instance allocated on the specified MemoryStack. |
static AINodeAnim |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AINodeAnim instance allocated on the specified MemoryStack. |
AIString |
mNodeName()
Returns a
AIString view of the mNodeName field. |
AINodeAnim |
mNodeName(AIString value)
Copies the specified
AIString to the mNodeName field. |
AINodeAnim |
mNodeName(java.util.function.Consumer<AIString> consumer)
Passes the
mNodeName field to the specified Consumer. |
int |
mNumPositionKeys()
Returns the value of the
mNumPositionKeys field. |
int |
mNumRotationKeys()
Returns the value of the
mNumRotationKeys field. |
int |
mNumScalingKeys()
Returns the value of the
mNumScalingKeys field. |
AIVectorKey.Buffer |
mPositionKeys()
Returns a
AIVectorKey.Buffer view of the struct array pointed to by the mPositionKeys field. |
AINodeAnim |
mPositionKeys(AIVectorKey.Buffer value)
Sets the address of the specified
AIVectorKey.Buffer to the mPositionKeys field. |
int |
mPostState()
Returns the value of the
mPostState field. |
AINodeAnim |
mPostState(int value)
Sets the specified value to the
mPostState field. |
int |
mPreState()
Returns the value of the
mPreState field. |
AINodeAnim |
mPreState(int value)
Sets the specified value to the
mPreState field. |
AIQuatKey.Buffer |
mRotationKeys()
Returns a
AIQuatKey.Buffer view of the struct array pointed to by the mRotationKeys field. |
AINodeAnim |
mRotationKeys(AIQuatKey.Buffer value)
Sets the address of the specified
AIQuatKey.Buffer to the mRotationKeys field. |
AIVectorKey.Buffer |
mScalingKeys()
Returns a
AIVectorKey.Buffer view of the struct array pointed to by the mScalingKeys field. |
AINodeAnim |
mScalingKeys(AIVectorKey.Buffer value)
Sets the address of the specified
AIVectorKey.Buffer to the mScalingKeys field. |
static AIString |
nmNodeName(long struct)
Unsafe version of
mNodeName(). |
static void |
nmNodeName(long struct,
AIString value)
Unsafe version of
mNodeName. |
static int |
nmNumPositionKeys(long struct)
Unsafe version of
mNumPositionKeys(). |
static void |
nmNumPositionKeys(long struct,
int value)
Sets the specified value to the
mNumPositionKeys field of the specified struct. |
static int |
nmNumRotationKeys(long struct)
Unsafe version of
mNumRotationKeys(). |
static void |
nmNumRotationKeys(long struct,
int value)
Sets the specified value to the
mNumRotationKeys field of the specified struct. |
static int |
nmNumScalingKeys(long struct)
Unsafe version of
mNumScalingKeys(). |
static void |
nmNumScalingKeys(long struct,
int value)
Sets the specified value to the
mNumScalingKeys field of the specified struct. |
static AIVectorKey.Buffer |
nmPositionKeys(long struct)
Unsafe version of
mPositionKeys(). |
static void |
nmPositionKeys(long struct,
AIVectorKey.Buffer value)
Unsafe version of
mPositionKeys. |
static int |
nmPostState(long struct)
Unsafe version of
mPostState(). |
static void |
nmPostState(long struct,
int value)
Unsafe version of
mPostState. |
static int |
nmPreState(long struct)
Unsafe version of
mPreState(). |
static void |
nmPreState(long struct,
int value)
Unsafe version of
mPreState. |
static AIQuatKey.Buffer |
nmRotationKeys(long struct)
Unsafe version of
mRotationKeys(). |
static void |
nmRotationKeys(long struct,
AIQuatKey.Buffer value)
Unsafe version of
mRotationKeys. |
static AIVectorKey.Buffer |
nmScalingKeys(long struct)
Unsafe version of
mScalingKeys(). |
static void |
nmScalingKeys(long struct,
AIVectorKey.Buffer value)
Unsafe version of
mScalingKeys. |
AINodeAnim |
set(AINodeAnim src)
Copies the specified struct data to this struct.
|
AINodeAnim |
set(AIString mNodeName,
AIVectorKey.Buffer mPositionKeys,
AIQuatKey.Buffer mRotationKeys,
AIVectorKey.Buffer mScalingKeys,
int mPreState,
int mPostState)
Initializes this struct with the specified values.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MNODENAME
public static final int MNUMPOSITIONKEYS
public static final int MPOSITIONKEYS
public static final int MNUMROTATIONKEYS
public static final int MROTATIONKEYS
public static final int MNUMSCALINGKEYS
public static final int MSCALINGKEYS
public static final int MPRESTATE
public static final int MPOSTSTATE
public AINodeAnim(java.nio.ByteBuffer container)
AINodeAnim 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 int mNumPositionKeys()
mNumPositionKeys field.@Nullable public AIVectorKey.Buffer mPositionKeys()
AIVectorKey.Buffer view of the struct array pointed to by the mPositionKeys field.public int mNumRotationKeys()
mNumRotationKeys field.@Nullable public AIQuatKey.Buffer mRotationKeys()
AIQuatKey.Buffer view of the struct array pointed to by the mRotationKeys field.public int mNumScalingKeys()
mNumScalingKeys field.@Nullable public AIVectorKey.Buffer mScalingKeys()
AIVectorKey.Buffer view of the struct array pointed to by the mScalingKeys field.public int mPreState()
mPreState field.public int mPostState()
mPostState field.public AINodeAnim mNodeName(AIString value)
AIString to the mNodeName field.public AINodeAnim mNodeName(java.util.function.Consumer<AIString> consumer)
mNodeName field to the specified Consumer.public AINodeAnim mPositionKeys(@Nullable AIVectorKey.Buffer value)
AIVectorKey.Buffer to the mPositionKeys field.public AINodeAnim mRotationKeys(@Nullable AIQuatKey.Buffer value)
AIQuatKey.Buffer to the mRotationKeys field.public AINodeAnim mScalingKeys(@Nullable AIVectorKey.Buffer value)
AIVectorKey.Buffer to the mScalingKeys field.public AINodeAnim mPreState(int value)
mPreState field.public AINodeAnim mPostState(int value)
mPostState field.public AINodeAnim set(AIString mNodeName, @Nullable AIVectorKey.Buffer mPositionKeys, @Nullable AIQuatKey.Buffer mRotationKeys, @Nullable AIVectorKey.Buffer mScalingKeys, int mPreState, int mPostState)
public AINodeAnim set(AINodeAnim src)
src - the source structpublic static AINodeAnim malloc()
AINodeAnim instance allocated with memAlloc. The instance must be explicitly freed.public static AINodeAnim calloc()
AINodeAnim instance allocated with memCalloc. The instance must be explicitly freed.public static AINodeAnim create()
AINodeAnim instance allocated with BufferUtils.public static AINodeAnim create(long address)
AINodeAnim instance for the specified memory address.@Nullable public static AINodeAnim createSafe(long address)
public static AINodeAnim.Buffer malloc(int capacity)
AINodeAnim.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AINodeAnim.Buffer calloc(int capacity)
AINodeAnim.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AINodeAnim.Buffer create(int capacity)
AINodeAnim.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AINodeAnim.Buffer create(long address, int capacity)
AINodeAnim.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AINodeAnim.Buffer createSafe(long address, int capacity)
public static AINodeAnim mallocStack()
AINodeAnim instance allocated on the thread-local MemoryStack.public static AINodeAnim callocStack()
AINodeAnim instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AINodeAnim mallocStack(org.lwjgl.system.MemoryStack stack)
AINodeAnim instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AINodeAnim callocStack(org.lwjgl.system.MemoryStack stack)
AINodeAnim instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AINodeAnim.Buffer mallocStack(int capacity)
AINodeAnim.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AINodeAnim.Buffer callocStack(int capacity)
AINodeAnim.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AINodeAnim.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AINodeAnim.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AINodeAnim.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AINodeAnim.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 AIString nmNodeName(long struct)
mNodeName().public static int nmNumPositionKeys(long struct)
mNumPositionKeys().@Nullable public static AIVectorKey.Buffer nmPositionKeys(long struct)
mPositionKeys().public static int nmNumRotationKeys(long struct)
mNumRotationKeys().@Nullable public static AIQuatKey.Buffer nmRotationKeys(long struct)
mRotationKeys().public static int nmNumScalingKeys(long struct)
mNumScalingKeys().@Nullable public static AIVectorKey.Buffer nmScalingKeys(long struct)
mScalingKeys().public static int nmPreState(long struct)
mPreState().public static int nmPostState(long struct)
mPostState().public static void nmNumPositionKeys(long struct,
int value)
mNumPositionKeys field of the specified struct.public static void nmPositionKeys(long struct,
@Nullable
AIVectorKey.Buffer value)
mPositionKeys.public static void nmNumRotationKeys(long struct,
int value)
mNumRotationKeys field of the specified struct.public static void nmRotationKeys(long struct,
@Nullable
AIQuatKey.Buffer value)
mRotationKeys.public static void nmNumScalingKeys(long struct,
int value)
mNumScalingKeys field of the specified struct.public static void nmScalingKeys(long struct,
@Nullable
AIVectorKey.Buffer value)
mScalingKeys.public static void nmPreState(long struct,
int value)
mPreState.public static void nmPostState(long struct,
int value)
mPostState.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.