public class AIMeshMorphAnim
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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 aiMeshMorphAnim {
struct aiString mName;
unsigned int mNumKeys;
struct aiMeshMorphKey * mKeys;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIMeshMorphAnim.Buffer
An array of
AIMeshMorphAnim 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 |
|---|
AIMeshMorphAnim(java.nio.ByteBuffer container)
Creates a
AIMeshMorphAnim instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIMeshMorphAnim |
calloc()
Returns a new
AIMeshMorphAnim instance allocated with memCalloc. |
static AIMeshMorphAnim.Buffer |
calloc(int capacity)
Returns a new
AIMeshMorphAnim.Buffer instance allocated with memCalloc. |
static AIMeshMorphAnim |
callocStack()
Returns a new
AIMeshMorphAnim instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMeshMorphAnim.Buffer |
callocStack(int capacity)
Returns a new
AIMeshMorphAnim.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMeshMorphAnim.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMeshMorphAnim.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIMeshMorphAnim |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMeshMorphAnim instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIMeshMorphAnim |
create()
Returns a new
AIMeshMorphAnim instance allocated with BufferUtils. |
static AIMeshMorphAnim.Buffer |
create(int capacity)
Returns a new
AIMeshMorphAnim.Buffer instance allocated with BufferUtils. |
static AIMeshMorphAnim |
create(long address)
Returns a new
AIMeshMorphAnim instance for the specified memory address. |
static AIMeshMorphAnim.Buffer |
create(long address,
int capacity)
Create a
AIMeshMorphAnim.Buffer instance at the specified memory. |
static AIMeshMorphAnim |
createSafe(long address)
|
static AIMeshMorphAnim.Buffer |
createSafe(long address,
int capacity)
|
static AIMeshMorphAnim |
malloc()
Returns a new
AIMeshMorphAnim instance allocated with memAlloc. |
static AIMeshMorphAnim.Buffer |
malloc(int capacity)
Returns a new
AIMeshMorphAnim.Buffer instance allocated with memAlloc. |
static AIMeshMorphAnim |
mallocStack()
Returns a new
AIMeshMorphAnim instance allocated on the thread-local MemoryStack. |
static AIMeshMorphAnim.Buffer |
mallocStack(int capacity)
Returns a new
AIMeshMorphAnim.Buffer instance allocated on the thread-local MemoryStack. |
static AIMeshMorphAnim.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMeshMorphAnim.Buffer instance allocated on the specified MemoryStack. |
static AIMeshMorphAnim |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMeshMorphAnim instance allocated on the specified MemoryStack. |
AIMeshMorphKey.Buffer |
mKeys()
Returns a
AIMeshMorphKey.Buffer view of the struct array pointed to by the mKeys field. |
AIMeshMorphAnim |
mKeys(AIMeshMorphKey.Buffer value)
Sets the address of the specified
AIMeshMorphKey.Buffer to the mKeys field. |
AIString |
mName()
Returns a
AIString view of the mName field. |
AIMeshMorphAnim |
mName(AIString value)
Copies the specified
AIString to the mName field. |
AIMeshMorphAnim |
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 AIMeshMorphKey.Buffer |
nmKeys(long struct)
Unsafe version of
mKeys(). |
static void |
nmKeys(long struct,
AIMeshMorphKey.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. |
AIMeshMorphAnim |
set(AIMeshMorphAnim src)
Copies the specified struct data to this struct.
|
AIMeshMorphAnim |
set(AIString mName,
AIMeshMorphKey.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 AIMeshMorphAnim(java.nio.ByteBuffer container)
AIMeshMorphAnim 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 AIMeshMorphKey.Buffer mKeys()
AIMeshMorphKey.Buffer view of the struct array pointed to by the mKeys field.public AIMeshMorphAnim mName(AIString value)
AIString to the mName field.public AIMeshMorphAnim mName(java.util.function.Consumer<AIString> consumer)
mName field to the specified Consumer.public AIMeshMorphAnim mKeys(AIMeshMorphKey.Buffer value)
AIMeshMorphKey.Buffer to the mKeys field.public AIMeshMorphAnim set(AIString mName, AIMeshMorphKey.Buffer mKeys)
public AIMeshMorphAnim set(AIMeshMorphAnim src)
src - the source structpublic static AIMeshMorphAnim malloc()
AIMeshMorphAnim instance allocated with memAlloc. The instance must be explicitly freed.public static AIMeshMorphAnim calloc()
AIMeshMorphAnim instance allocated with memCalloc. The instance must be explicitly freed.public static AIMeshMorphAnim create()
AIMeshMorphAnim instance allocated with BufferUtils.public static AIMeshMorphAnim create(long address)
AIMeshMorphAnim instance for the specified memory address.@Nullable public static AIMeshMorphAnim createSafe(long address)
public static AIMeshMorphAnim.Buffer malloc(int capacity)
AIMeshMorphAnim.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMeshMorphAnim.Buffer calloc(int capacity)
AIMeshMorphAnim.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMeshMorphAnim.Buffer create(int capacity)
AIMeshMorphAnim.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIMeshMorphAnim.Buffer create(long address, int capacity)
AIMeshMorphAnim.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIMeshMorphAnim.Buffer createSafe(long address, int capacity)
public static AIMeshMorphAnim mallocStack()
AIMeshMorphAnim instance allocated on the thread-local MemoryStack.public static AIMeshMorphAnim callocStack()
AIMeshMorphAnim instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIMeshMorphAnim mallocStack(org.lwjgl.system.MemoryStack stack)
AIMeshMorphAnim instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIMeshMorphAnim callocStack(org.lwjgl.system.MemoryStack stack)
AIMeshMorphAnim instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIMeshMorphAnim.Buffer mallocStack(int capacity)
AIMeshMorphAnim.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIMeshMorphAnim.Buffer callocStack(int capacity)
AIMeshMorphAnim.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIMeshMorphAnim.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMeshMorphAnim.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIMeshMorphAnim.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMeshMorphAnim.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 AIMeshMorphKey.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,
AIMeshMorphKey.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.