Top Description Inners Fields Constructors Methods
org.lwjgl.assimp

public Class AIAnimation

extends Struct<AIAnimation>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct aiAnimation
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

An animation consists of keyframe data for a number of nodes. For each node affected by the animation a separate series of data is given.

Layout


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;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
AIAnimation.Buffer

An array of AIAnimation structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
MCHANNELS

The struct member offsets.

public static final int
MDURATION

The struct member offsets.

public static final int
MMESHCHANNELS

The struct member offsets.

public static final int
MMORPHMESHCHANNELS

The struct member offsets.

public static final int
MNAME

The struct member offsets.

public static final int
MNUMCHANNELS

The struct member offsets.

public static final int
MNUMMESHCHANNELS

The struct member offsets.

public static final int
MNUMMORPHMESHCHANNELS

The struct member offsets.

public static final int
MTICKSPERSECOND

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
AIAnimation(long address, ByteBuffer container)

public
AIAnimation(ByteBuffer container)

Creates a AIAnimation instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static AIAnimation
calloc()

Returns a new AIAnimation instance allocated with memCalloc.

public static AIAnimation.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new AIAnimation.Buffer instance allocated with memCalloc.

public static AIAnimation
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new AIAnimation instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static AIAnimation.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new AIAnimation.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static AIAnimation
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static AIAnimation
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static AIAnimation.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static AIAnimation.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected AIAnimation
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static AIAnimation
create()

Returns a new AIAnimation instance allocated with BufferUtils.

public static AIAnimation
create(long address)

Returns a new AIAnimation instance for the specified memory address.

public static AIAnimation.Buffer
create(int
the buffer capacity
capacity
)

Returns a new AIAnimation.Buffer instance allocated with BufferUtils.

public static AIAnimation.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a AIAnimation.Buffer instance at the specified memory.

public static AIAnimation
createSafe(long address)

Like create, but returns null if address is NULL.

public static AIAnimation.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static AIAnimation
malloc()

Returns a new AIAnimation instance allocated with memAlloc.

public static AIAnimation.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new AIAnimation.Buffer instance allocated with memAlloc.

public static AIAnimation
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new AIAnimation instance allocated on the specified MemoryStack.

public static AIAnimation.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new AIAnimation.Buffer instance allocated on the specified MemoryStack.

public static AIAnimation
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static AIAnimation
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static AIAnimation.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static AIAnimation.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public PointerBuffer
mChannels()

The node animation channels.

public AIAnimation
mChannels(PointerBuffer value)

Sets the address of the specified PointerBuffer to the mChannels field.

public double
mDuration()

Duration of the animation in ticks.

public AIAnimation
mDuration(double value)

Sets the specified value to the mDuration field.

public PointerBuffer
mMeshChannels()

The mesh animation channels.

public AIAnimation
mMeshChannels(PointerBuffer value)

Sets the address of the specified PointerBuffer to the mMeshChannels field.

public PointerBuffer
mMorphMeshChannels()

the morph mesh animation channels.

public AIAnimation
mMorphMeshChannels(PointerBuffer value)

Sets the address of the specified PointerBuffer to the mMorphMeshChannels field.

public AIString
mName()

The name of the animation.

public AIAnimation
mName(AIString value)

Copies the specified AIString to the mName field.

public AIAnimation
mName(Consumer<AIString> consumer)

Passes the mName field to the specified Consumer.

public int
mNumChannels()

The number of bone animation channels.

public int
mNumMeshChannels()

The number of mesh animation channels.

public int
mNumMorphMeshChannels()

the number of mesh animation channels.

public double
mTicksPerSecond()

Ticks per second.

public AIAnimation
mTicksPerSecond(double value)

Sets the specified value to the mTicksPerSecond field.

public static PointerBuffer
nmChannels(long struct)

Unsafe version of mChannels.

public static void
nmChannels(long struct, PointerBuffer value)

Unsafe version of mChannels.

public static double
nmDuration(long struct)

Unsafe version of mDuration.

public static void
nmDuration(long struct, double value)

Unsafe version of mDuration.

public static PointerBuffer
nmMeshChannels(long struct)

Unsafe version of mMeshChannels.

public static void
nmMeshChannels(long struct, PointerBuffer value)

Unsafe version of mMeshChannels.

public static PointerBuffer
nmMorphMeshChannels(long struct)

Unsafe version of mMorphMeshChannels.

public static void
nmMorphMeshChannels(long struct, PointerBuffer value)

Unsafe version of mMorphMeshChannels.

public static AIString
nmName(long struct)

Unsafe version of mName.

public static void
nmName(long struct, AIString value)

Unsafe version of mName.

public static int
nmNumChannels(long struct)

Unsafe version of mNumChannels.

public static void
nmNumChannels(long struct, int value)

Sets the specified value to the mNumChannels field of the specified struct.

public static int
nmNumMeshChannels(long struct)

Unsafe version of mNumMeshChannels.

public static void
nmNumMeshChannels(long struct, int value)

Sets the specified value to the mNumMeshChannels field of the specified struct.

public static int
nmNumMorphMeshChannels(long struct)

Unsafe version of mNumMorphMeshChannels.

public static void
nmNumMorphMeshChannels(long struct, int value)

Sets the specified value to the mNumMorphMeshChannels field of the specified struct.

public static double
nmTicksPerSecond(long struct)

Unsafe version of mTicksPerSecond.

public static void
nmTicksPerSecond(long struct, double value)

Unsafe version of mTicksPerSecond.

public AIAnimation
set(AIString mName, double mDuration, double mTicksPerSecond, PointerBuffer mChannels, PointerBuffer mMeshChannels, PointerBuffer mMorphMeshChannels)

Initializes this struct with the specified values.

public AIAnimation

Returns:

this struct
set
(AIAnimation
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate