Skeleton animations can be described as a tree of bones:
root
|
node1
/ \
node3 node4
If you want to calculate the transformation of node three you need to compute the transformation hierarchy for the transformation chain of node3:
root->node1->node3
Each node is represented as a skeleton instance.
struct aiSkeleton {
struct aiString mName;
unsigned int mNumBones;
struct aiSkeletonBone ** mBones;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | AISkeleton.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | MBONES
The struct member offsets. |
| public static final int | MNAME
The struct member offsets. |
| public static final int | MNUMBONES
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | AISkeleton(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static AISkeleton | |
| public static AISkeleton. | calloc(int
the buffer capacity capacity)Returns a new |
| public static AISkeleton | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AISkeleton. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| protected AISkeleton | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static AISkeleton | |
| public static AISkeleton | |
| public static AISkeleton. | create(int
the buffer capacity capacity)Returns a new |
| public static AISkeleton. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static AISkeleton | |
| public static AISkeleton. | |
| public static AISkeleton | |
| public static AISkeleton. | malloc(int
the buffer capacity capacity)Returns a new |
| public static AISkeleton | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static AISkeleton. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public PointerBuffer | |
| public AISkeleton | |
| public AIString | |
| public AISkeleton | |
| public AISkeleton | |
| public int | |
| public static PointerBuffer | |
| public static void | |
| public static AIString | |
| public static void | |
| public static int | |
| public static void | nmNumBones(long struct, int value)
Sets the specified value to the |
| public AISkeleton | |
| public AISkeleton | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public static void |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| MBONES | back to summary |
|---|---|
| public static final int MBONES The struct member offsets. | |
| MNAME | back to summary |
|---|---|
| public static final int MNAME The struct member offsets. | |
| MNUMBONES | back to summary |
|---|---|
| public static final int MNUMBONES The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| AISkeleton | back to summary |
|---|---|
| protected AISkeleton(long address, ByteBuffer container) | |
| AISkeleton | back to summary |
|---|---|
| public AISkeleton(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static AISkeleton calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static AISkeleton. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static AISkeleton calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static AISkeleton. Returns a new
| |
| create | back to summary |
|---|---|
| protected AISkeleton create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static AISkeleton create() Returns a new | |
| create | back to summary |
|---|---|
| public static AISkeleton create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static AISkeleton. Returns a new
| |
| create | back to summary |
|---|---|
| public static AISkeleton. Create a
| |
| createSafe | back to summary |
|---|---|
| public static AISkeleton createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static AISkeleton. Like
| |
| malloc | back to summary |
|---|---|
| public static AISkeleton malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static AISkeleton. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static AISkeleton malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static AISkeleton. Returns a new
| |
| mBones | back to summary |
|---|---|
| public PointerBuffer mBones() the bone instance in the skeleton
| |
| mBones | back to summary |
|---|---|
| public AISkeleton mBones(PointerBuffer value) Sets the address of the specified | |
| mName | back to summary |
|---|---|
| public AIString mName() the name of the skeleton instance
| |
| mName | back to summary |
|---|---|
| public AISkeleton mName(AIString value) | |
| mName | back to summary |
|---|---|
| public AISkeleton mName(Consumer<AIString> consumer) | |
| mNumBones | back to summary |
|---|---|
| public int mNumBones() the number of bones in the skeleton
| |
| nmBones | back to summary |
|---|---|
| public static PointerBuffer nmBones(long struct) Unsafe version of | |
| nmBones | back to summary |
|---|---|
| public static void nmBones(long struct, PointerBuffer value) Unsafe version of | |
| nmName | back to summary |
|---|---|
| public static AIString nmName(long struct) Unsafe version of | |
| nmName | back to summary |
|---|---|
| public static void nmName(long struct, AIString value) Unsafe version of | |
| nmNumBones | back to summary |
|---|---|
| public static int nmNumBones(long struct) Unsafe version of | |
| nmNumBones | back to summary |
|---|---|
| public static void nmNumBones(long struct, int value) Sets the specified value to the | |
| set | back to summary |
|---|---|
| public AISkeleton set(AIString mName, PointerBuffer mBones) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public AISkeleton set(AISkeleton src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| validate | back to summary |
|---|---|
| public static void validate(long struct) Validates pointer members that should not be
| |
AISkeleton structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final AISkeleton |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| protected AISkeleton | |
| public PointerBuffer | |
| public AISkeleton. | mBones(PointerBuffer value)
Sets the address of the specified |
| public AIString | |
| public AISkeleton. | |
| public AISkeleton. | |
| public int | |
| protected AISkeleton. |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final AISkeleton ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| getElementFactory | back to summary |
|---|---|
| protected AISkeleton getElementFactory() Implements abstract org.
| |
| mBones | back to summary |
|---|---|
public PointerBuffer mBones()
| |
| mBones | back to summary |
|---|---|
| public AISkeleton. Sets the address of the specified | |
| mName | back to summary |
|---|---|
public AIString mName()
| |
| mName | back to summary |
|---|---|
| public AISkeleton. Copies the specified | |
| mName | back to summary |
|---|---|
| public AISkeleton. Passes the | |
| mNumBones | back to summary |
|---|---|
public int mNumBones()
| |
| self | back to summary |
|---|---|
| protected AISkeleton. Implements abstract org.
| |