public class AIAnimation
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
mName –
The name of the animation. If the modeling package this data was exported from does support only a single animation channel, this name is usually empty
(length is zero).mDuration – Duration of the animation in ticks.mTicksPerSecond – Ticks per second. 0 if not specified in the imported filemNumChannels – The number of bone animation channels. Each channel affects a single node.mChannels – The node animation channels. Each channel affects a single node. The array is mNumChannels in size.mNumMeshChannels – The number of mesh animation channels. Each channel affects a single mesh and defines vertex-based animation.mMeshChannels – The mesh animation channels. Each channel affects a single mesh. The array is mNumMeshChannels in size.mNumMorphMeshChannels – the number of mesh animation channels. Each channel affects a single mesh and defines morphing animation.mMorphMeshChannels – the morph mesh animation channels. Each channel affects a single mesh. The array is mNumMorphMeshChannels in size.
struct aiAnimation {
struct aiString mName;
double mDuration;
double mTicksPerSecond;
unsigned int mNumChannels;
struct aiNodeAnim ** mChannels;
unsigned int mNumMeshChannels;
struct aiMeshAnim ** mMeshChannels;
unsigned int mNumMorphMeshChannels;
struct aiMeshMorphAnim ** mMorphMeshChannels;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIAnimation.Buffer
An array of
AIAnimation structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MCHANNELS
The struct member offsets.
|
static int |
MDURATION
The struct member offsets.
|
static int |
MMESHCHANNELS
The struct member offsets.
|
static int |
MMORPHMESHCHANNELS
The struct member offsets.
|
static int |
MNAME
The struct member offsets.
|
static int |
MNUMCHANNELS
The struct member offsets.
|
static int |
MNUMMESHCHANNELS
The struct member offsets.
|
static int |
MNUMMORPHMESHCHANNELS
The struct member offsets.
|
static int |
MTICKSPERSECOND
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AIAnimation(java.nio.ByteBuffer container)
Creates a
AIAnimation instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIAnimation |
calloc()
Returns a new
AIAnimation instance allocated with memCalloc. |
static AIAnimation.Buffer |
calloc(int capacity)
Returns a new
AIAnimation.Buffer instance allocated with memCalloc. |
static AIAnimation |
callocStack()
Returns a new
AIAnimation instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIAnimation.Buffer |
callocStack(int capacity)
Returns a new
AIAnimation.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIAnimation.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIAnimation.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIAnimation |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIAnimation instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIAnimation |
create()
Returns a new
AIAnimation instance allocated with BufferUtils. |
static AIAnimation.Buffer |
create(int capacity)
Returns a new
AIAnimation.Buffer instance allocated with BufferUtils. |
static AIAnimation |
create(long address)
Returns a new
AIAnimation instance for the specified memory address. |
static AIAnimation.Buffer |
create(long address,
int capacity)
Create a
AIAnimation.Buffer instance at the specified memory. |
static AIAnimation |
createSafe(long address)
|
static AIAnimation.Buffer |
createSafe(long address,
int capacity)
|
static AIAnimation |
malloc()
Returns a new
AIAnimation instance allocated with memAlloc. |
static AIAnimation.Buffer |
malloc(int capacity)
Returns a new
AIAnimation.Buffer instance allocated with memAlloc. |
static AIAnimation |
mallocStack()
Returns a new
AIAnimation instance allocated on the thread-local MemoryStack. |
static AIAnimation.Buffer |
mallocStack(int capacity)
Returns a new
AIAnimation.Buffer instance allocated on the thread-local MemoryStack. |
static AIAnimation.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIAnimation.Buffer instance allocated on the specified MemoryStack. |
static AIAnimation |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIAnimation instance allocated on the specified MemoryStack. |
org.lwjgl.PointerBuffer |
mChannels()
Returns a
PointerBuffer view of the data pointed to by the mChannels field. |
AIAnimation |
mChannels(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the mChannels field. |
double |
mDuration()
Returns the value of the
mDuration field. |
AIAnimation |
mDuration(double value)
Sets the specified value to the
mDuration field. |
org.lwjgl.PointerBuffer |
mMeshChannels()
Returns a
PointerBuffer view of the data pointed to by the mMeshChannels field. |
AIAnimation |
mMeshChannels(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the mMeshChannels field. |
org.lwjgl.PointerBuffer |
mMorphMeshChannels()
Returns a
PointerBuffer view of the data pointed to by the mMorphMeshChannels field. |
AIAnimation |
mMorphMeshChannels(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the mMorphMeshChannels field. |
AIString |
mName()
Returns a
AIString view of the mName field. |
AIAnimation |
mName(AIString value)
Copies the specified
AIString to the mName field. |
AIAnimation |
mName(java.util.function.Consumer<AIString> consumer)
Passes the
mName field to the specified Consumer. |
int |
mNumChannels()
Returns the value of the
mNumChannels field. |
int |
mNumMeshChannels()
Returns the value of the
mNumMeshChannels field. |
int |
mNumMorphMeshChannels()
Returns the value of the
mNumMorphMeshChannels field. |
double |
mTicksPerSecond()
Returns the value of the
mTicksPerSecond field. |
AIAnimation |
mTicksPerSecond(double value)
Sets the specified value to the
mTicksPerSecond field. |
static org.lwjgl.PointerBuffer |
nmChannels(long struct)
Unsafe version of
mChannels. |
static void |
nmChannels(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
mChannels. |
static double |
nmDuration(long struct)
Unsafe version of
mDuration(). |
static void |
nmDuration(long struct,
double value)
Unsafe version of
mDuration. |
static org.lwjgl.PointerBuffer |
nmMeshChannels(long struct)
Unsafe version of
mMeshChannels. |
static void |
nmMeshChannels(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
mMeshChannels. |
static org.lwjgl.PointerBuffer |
nmMorphMeshChannels(long struct)
Unsafe version of
mMorphMeshChannels. |
static void |
nmMorphMeshChannels(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
mMorphMeshChannels. |
static AIString |
nmName(long struct)
Unsafe version of
mName(). |
static void |
nmName(long struct,
AIString value)
Unsafe version of
mName. |
static int |
nmNumChannels(long struct)
Unsafe version of
mNumChannels(). |
static void |
nmNumChannels(long struct,
int value)
Sets the specified value to the
mNumChannels field of the specified struct. |
static int |
nmNumMeshChannels(long struct)
Unsafe version of
mNumMeshChannels(). |
static void |
nmNumMeshChannels(long struct,
int value)
Sets the specified value to the
mNumMeshChannels field of the specified struct. |
static int |
nmNumMorphMeshChannels(long struct)
Unsafe version of
mNumMorphMeshChannels(). |
static void |
nmNumMorphMeshChannels(long struct,
int value)
Sets the specified value to the
mNumMorphMeshChannels field of the specified struct. |
static double |
nmTicksPerSecond(long struct)
Unsafe version of
mTicksPerSecond(). |
static void |
nmTicksPerSecond(long struct,
double value)
Unsafe version of
mTicksPerSecond. |
AIAnimation |
set(AIAnimation src)
Copies the specified struct data to this struct.
|
AIAnimation |
set(AIString mName,
double mDuration,
double mTicksPerSecond,
org.lwjgl.PointerBuffer mChannels,
org.lwjgl.PointerBuffer mMeshChannels,
org.lwjgl.PointerBuffer mMorphMeshChannels)
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 MNAME
public static final int MDURATION
public static final int MTICKSPERSECOND
public static final int MNUMCHANNELS
public static final int MCHANNELS
public static final int MNUMMESHCHANNELS
public static final int MMESHCHANNELS
public static final int MNUMMORPHMESHCHANNELS
public static final int MMORPHMESHCHANNELS
public AIAnimation(java.nio.ByteBuffer container)
AIAnimation 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 mDuration()
mDuration field.public double mTicksPerSecond()
mTicksPerSecond field.public int mNumChannels()
mNumChannels field.@Nullable public org.lwjgl.PointerBuffer mChannels()
PointerBuffer view of the data pointed to by the mChannels field.public int mNumMeshChannels()
mNumMeshChannels field.@Nullable public org.lwjgl.PointerBuffer mMeshChannels()
PointerBuffer view of the data pointed to by the mMeshChannels field.public int mNumMorphMeshChannels()
mNumMorphMeshChannels field.@Nullable public org.lwjgl.PointerBuffer mMorphMeshChannels()
PointerBuffer view of the data pointed to by the mMorphMeshChannels field.public AIAnimation mName(AIString value)
AIString to the mName field.public AIAnimation mName(java.util.function.Consumer<AIString> consumer)
mName field to the specified Consumer.public AIAnimation mDuration(double value)
mDuration field.public AIAnimation mTicksPerSecond(double value)
mTicksPerSecond field.public AIAnimation mChannels(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the mChannels field.public AIAnimation mMeshChannels(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the mMeshChannels field.public AIAnimation mMorphMeshChannels(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the mMorphMeshChannels field.public AIAnimation set(AIString mName, double mDuration, double mTicksPerSecond, @Nullable org.lwjgl.PointerBuffer mChannels, @Nullable org.lwjgl.PointerBuffer mMeshChannels, @Nullable org.lwjgl.PointerBuffer mMorphMeshChannels)
public AIAnimation set(AIAnimation src)
src - the source structpublic static AIAnimation malloc()
AIAnimation instance allocated with memAlloc. The instance must be explicitly freed.public static AIAnimation calloc()
AIAnimation instance allocated with memCalloc. The instance must be explicitly freed.public static AIAnimation create()
AIAnimation instance allocated with BufferUtils.public static AIAnimation create(long address)
AIAnimation instance for the specified memory address.@Nullable public static AIAnimation createSafe(long address)
public static AIAnimation.Buffer malloc(int capacity)
AIAnimation.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIAnimation.Buffer calloc(int capacity)
AIAnimation.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIAnimation.Buffer create(int capacity)
AIAnimation.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIAnimation.Buffer create(long address, int capacity)
AIAnimation.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIAnimation.Buffer createSafe(long address, int capacity)
public static AIAnimation mallocStack()
AIAnimation instance allocated on the thread-local MemoryStack.public static AIAnimation callocStack()
AIAnimation instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIAnimation mallocStack(org.lwjgl.system.MemoryStack stack)
AIAnimation instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIAnimation callocStack(org.lwjgl.system.MemoryStack stack)
AIAnimation instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIAnimation.Buffer mallocStack(int capacity)
AIAnimation.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIAnimation.Buffer callocStack(int capacity)
AIAnimation.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIAnimation.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIAnimation.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIAnimation.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIAnimation.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 nmDuration(long struct)
mDuration().public static double nmTicksPerSecond(long struct)
mTicksPerSecond().public static int nmNumChannels(long struct)
mNumChannels().@Nullable public static org.lwjgl.PointerBuffer nmChannels(long struct)
mChannels.public static int nmNumMeshChannels(long struct)
mNumMeshChannels().@Nullable public static org.lwjgl.PointerBuffer nmMeshChannels(long struct)
mMeshChannels.public static int nmNumMorphMeshChannels(long struct)
mNumMorphMeshChannels().@Nullable public static org.lwjgl.PointerBuffer nmMorphMeshChannels(long struct)
mMorphMeshChannels.public static void nmDuration(long struct,
double value)
mDuration.public static void nmTicksPerSecond(long struct,
double value)
mTicksPerSecond.public static void nmNumChannels(long struct,
int value)
mNumChannels field of the specified struct.public static void nmChannels(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
mChannels.public static void nmNumMeshChannels(long struct,
int value)
mNumMeshChannels field of the specified struct.public static void nmMeshChannels(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
mMeshChannels.public static void nmNumMorphMeshChannels(long struct,
int value)
mNumMorphMeshChannels field of the specified struct.public static void nmMorphMeshChannels(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
mMorphMeshChannels.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.