public class AIMeshAnim
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
AIMesh::mAnimMeshes array. The purpose of aiMeshAnim is to define keyframes linking each mesh attachment to a particular point in
time.
mName –
Name of the mesh to be animated. An empty string is not allowed, animated meshes need to be named (not necessarily uniquely, the name can basically
serve as wildcard to select a group of meshes with similar animation setup)mNumKeys – Size of the mKeys array. Must be 1, at least.mKeys – Key frames of the animation. May not be NULL.
struct aiMeshAnim {
struct aiString mName;
unsigned int mNumKeys;
struct aiMeshKey * mKeys;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIMeshAnim.Buffer
An array of
AIMeshAnim structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MKEYS
The struct member offsets.
|
static int |
MNAME
The struct member offsets.
|
static int |
MNUMKEYS
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AIMeshAnim(java.nio.ByteBuffer container)
Creates a
AIMeshAnim instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIMeshAnim |
calloc()
Returns a new
AIMeshAnim instance allocated with memCalloc. |
static AIMeshAnim.Buffer |
calloc(int capacity)
Returns a new
AIMeshAnim.Buffer instance allocated with memCalloc. |
static AIMeshAnim |
callocStack()
Returns a new
AIMeshAnim instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMeshAnim.Buffer |
callocStack(int capacity)
Returns a new
AIMeshAnim.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMeshAnim.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMeshAnim.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIMeshAnim |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMeshAnim instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIMeshAnim |
create()
Returns a new
AIMeshAnim instance allocated with BufferUtils. |
static AIMeshAnim.Buffer |
create(int capacity)
Returns a new
AIMeshAnim.Buffer instance allocated with BufferUtils. |
static AIMeshAnim |
create(long address)
Returns a new
AIMeshAnim instance for the specified memory address. |
static AIMeshAnim.Buffer |
create(long address,
int capacity)
Create a
AIMeshAnim.Buffer instance at the specified memory. |
static AIMeshAnim |
createSafe(long address)
|
static AIMeshAnim.Buffer |
createSafe(long address,
int capacity)
|
static AIMeshAnim |
malloc()
Returns a new
AIMeshAnim instance allocated with memAlloc. |
static AIMeshAnim.Buffer |
malloc(int capacity)
Returns a new
AIMeshAnim.Buffer instance allocated with memAlloc. |
static AIMeshAnim |
mallocStack()
Returns a new
AIMeshAnim instance allocated on the thread-local MemoryStack. |
static AIMeshAnim.Buffer |
mallocStack(int capacity)
Returns a new
AIMeshAnim.Buffer instance allocated on the thread-local MemoryStack. |
static AIMeshAnim.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMeshAnim.Buffer instance allocated on the specified MemoryStack. |
static AIMeshAnim |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMeshAnim instance allocated on the specified MemoryStack. |
AIMeshKey.Buffer |
mKeys()
Returns a
AIMeshKey.Buffer view of the struct array pointed to by the mKeys field. |
AIMeshAnim |
mKeys(AIMeshKey.Buffer value)
Sets the address of the specified
AIMeshKey.Buffer to the mKeys field. |
AIString |
mName()
Returns a
AIString view of the mName field. |
AIMeshAnim |
mName(AIString value)
Copies the specified
AIString to the mName field. |
AIMeshAnim |
mName(java.util.function.Consumer<AIString> consumer)
Passes the
mName field to the specified Consumer. |
int |
mNumKeys()
Returns the value of the
mNumKeys field. |
static AIMeshKey.Buffer |
nmKeys(long struct)
Unsafe version of
mKeys(). |
static void |
nmKeys(long struct,
AIMeshKey.Buffer value)
Unsafe version of
mKeys. |
static AIString |
nmName(long struct)
Unsafe version of
mName(). |
static void |
nmName(long struct,
AIString value)
Unsafe version of
mName. |
static int |
nmNumKeys(long struct)
Unsafe version of
mNumKeys(). |
static void |
nmNumKeys(long struct,
int value)
Sets the specified value to the
mNumKeys field of the specified struct. |
AIMeshAnim |
set(AIMeshAnim src)
Copies the specified struct data to this struct.
|
AIMeshAnim |
set(AIString mName,
AIMeshKey.Buffer mKeys)
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 MNUMKEYS
public static final int MKEYS
public AIMeshAnim(java.nio.ByteBuffer container)
AIMeshAnim 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 mNumKeys()
mNumKeys field.public AIMeshKey.Buffer mKeys()
AIMeshKey.Buffer view of the struct array pointed to by the mKeys field.public AIMeshAnim mName(AIString value)
AIString to the mName field.public AIMeshAnim mName(java.util.function.Consumer<AIString> consumer)
mName field to the specified Consumer.public AIMeshAnim mKeys(AIMeshKey.Buffer value)
AIMeshKey.Buffer to the mKeys field.public AIMeshAnim set(AIString mName, AIMeshKey.Buffer mKeys)
public AIMeshAnim set(AIMeshAnim src)
src - the source structpublic static AIMeshAnim malloc()
AIMeshAnim instance allocated with memAlloc. The instance must be explicitly freed.public static AIMeshAnim calloc()
AIMeshAnim instance allocated with memCalloc. The instance must be explicitly freed.public static AIMeshAnim create()
AIMeshAnim instance allocated with BufferUtils.public static AIMeshAnim create(long address)
AIMeshAnim instance for the specified memory address.@Nullable public static AIMeshAnim createSafe(long address)
public static AIMeshAnim.Buffer malloc(int capacity)
AIMeshAnim.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMeshAnim.Buffer calloc(int capacity)
AIMeshAnim.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMeshAnim.Buffer create(int capacity)
AIMeshAnim.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIMeshAnim.Buffer create(long address, int capacity)
AIMeshAnim.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIMeshAnim.Buffer createSafe(long address, int capacity)
public static AIMeshAnim mallocStack()
AIMeshAnim instance allocated on the thread-local MemoryStack.public static AIMeshAnim callocStack()
AIMeshAnim instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIMeshAnim mallocStack(org.lwjgl.system.MemoryStack stack)
AIMeshAnim instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIMeshAnim callocStack(org.lwjgl.system.MemoryStack stack)
AIMeshAnim instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIMeshAnim.Buffer mallocStack(int capacity)
AIMeshAnim.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIMeshAnim.Buffer callocStack(int capacity)
AIMeshAnim.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIMeshAnim.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMeshAnim.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIMeshAnim.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMeshAnim.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 int nmNumKeys(long struct)
mNumKeys().public static AIMeshKey.Buffer nmKeys(long struct)
mKeys().public static void nmNumKeys(long struct,
int value)
mNumKeys field of the specified struct.public static void nmKeys(long struct,
AIMeshKey.Buffer value)
mKeys.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.