Package org.lwjgl.assimp
Class AIMeshMorphAnim
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIMeshMorphAnim
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class AIMeshMorphAnim extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Describes a morphing animation of a given mesh.Member documentation
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 themKeys
array. Must be 1, at least.mKeys
– Key frames of the animation. May not beNULL
.
Layout
struct aiMeshMorphAnim {
struct aiString
mName; unsigned int mNumKeys;struct aiMeshMorphKey
* mKeys; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AIMeshMorphAnim.Buffer
An array ofAIMeshMorphAnim
structs.
-
Constructor Summary
Constructors Constructor Description AIMeshMorphAnim(java.nio.ByteBuffer container)
Creates aAIMeshMorphAnim
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AIMeshMorphAnim
calloc()
Returns a newAIMeshMorphAnim
instance allocated withmemCalloc
.static AIMeshMorphAnim.Buffer
calloc(int capacity)
Returns a newAIMeshMorphAnim.Buffer
instance allocated withmemCalloc
.static AIMeshMorphAnim
callocStack()
Returns a newAIMeshMorphAnim
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AIMeshMorphAnim.Buffer
callocStack(int capacity)
Returns a newAIMeshMorphAnim.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AIMeshMorphAnim.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphAnim.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMeshMorphAnim
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphAnim
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMeshMorphAnim
create()
Returns a newAIMeshMorphAnim
instance allocated withBufferUtils
.static AIMeshMorphAnim.Buffer
create(int capacity)
Returns a newAIMeshMorphAnim.Buffer
instance allocated withBufferUtils
.static AIMeshMorphAnim
create(long address)
Returns a newAIMeshMorphAnim
instance for the specified memory address.static AIMeshMorphAnim.Buffer
create(long address, int capacity)
Create aAIMeshMorphAnim.Buffer
instance at the specified memory.static AIMeshMorphAnim
createSafe(long address)
static AIMeshMorphAnim.Buffer
createSafe(long address, int capacity)
static AIMeshMorphAnim
malloc()
Returns a newAIMeshMorphAnim
instance allocated withmemAlloc
.static AIMeshMorphAnim.Buffer
malloc(int capacity)
Returns a newAIMeshMorphAnim.Buffer
instance allocated withmemAlloc
.static AIMeshMorphAnim
mallocStack()
Returns a newAIMeshMorphAnim
instance allocated on the thread-localMemoryStack
.static AIMeshMorphAnim.Buffer
mallocStack(int capacity)
Returns a newAIMeshMorphAnim.Buffer
instance allocated on the thread-localMemoryStack
.static AIMeshMorphAnim.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphAnim.Buffer
instance allocated on the specifiedMemoryStack
.static AIMeshMorphAnim
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphAnim
instance allocated on the specifiedMemoryStack
.AIMeshMorphKey.Buffer
mKeys()
Returns aAIMeshMorphKey.Buffer
view of the struct array pointed to by themKeys
field.AIMeshMorphAnim
mKeys(AIMeshMorphKey.Buffer value)
Sets the address of the specifiedAIMeshMorphKey.Buffer
to themKeys
field.AIString
mName()
Returns aAIString
view of themName
field.AIMeshMorphAnim
mName(java.util.function.Consumer<AIString> consumer)
Passes themName
field to the specifiedConsumer
.AIMeshMorphAnim
mName(AIString value)
Copies the specifiedAIString
to themName
field.int
mNumKeys()
Returns the value of themNumKeys
field.static AIMeshMorphKey.Buffer
nmKeys(long struct)
Unsafe version ofmKeys()
.static void
nmKeys(long struct, AIMeshMorphKey.Buffer value)
Unsafe version ofmKeys
.static AIString
nmName(long struct)
Unsafe version ofmName()
.static void
nmName(long struct, AIString value)
Unsafe version ofmName
.static int
nmNumKeys(long struct)
Unsafe version ofmNumKeys()
.static void
nmNumKeys(long struct, int value)
Sets the specified value to themNumKeys
field of the specifiedstruct
.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 beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.
-
-
-
Constructor Detail
-
AIMeshMorphAnim
public AIMeshMorphAnim(java.nio.ByteBuffer container)
Creates aAIMeshMorphAnim
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
mNumKeys
public int mNumKeys()
Returns the value of themNumKeys
field.
-
mKeys
public AIMeshMorphKey.Buffer mKeys()
Returns aAIMeshMorphKey.Buffer
view of the struct array pointed to by themKeys
field.
-
mName
public AIMeshMorphAnim mName(AIString value)
Copies the specifiedAIString
to themName
field.
-
mName
public AIMeshMorphAnim mName(java.util.function.Consumer<AIString> consumer)
Passes themName
field to the specifiedConsumer
.
-
mKeys
public AIMeshMorphAnim mKeys(AIMeshMorphKey.Buffer value)
Sets the address of the specifiedAIMeshMorphKey.Buffer
to themKeys
field.
-
set
public AIMeshMorphAnim set(AIString mName, AIMeshMorphKey.Buffer mKeys)
Initializes this struct with the specified values.
-
set
public AIMeshMorphAnim set(AIMeshMorphAnim src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static AIMeshMorphAnim malloc()
Returns a newAIMeshMorphAnim
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static AIMeshMorphAnim calloc()
Returns a newAIMeshMorphAnim
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static AIMeshMorphAnim create()
Returns a newAIMeshMorphAnim
instance allocated withBufferUtils
.
-
create
public static AIMeshMorphAnim create(long address)
Returns a newAIMeshMorphAnim
instance for the specified memory address.
-
createSafe
@Nullable public static AIMeshMorphAnim createSafe(long address)
-
malloc
public static AIMeshMorphAnim.Buffer malloc(int capacity)
Returns a newAIMeshMorphAnim.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static AIMeshMorphAnim.Buffer calloc(int capacity)
Returns a newAIMeshMorphAnim.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMeshMorphAnim.Buffer create(int capacity)
Returns a newAIMeshMorphAnim.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMeshMorphAnim.Buffer create(long address, int capacity)
Create aAIMeshMorphAnim.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static AIMeshMorphAnim.Buffer createSafe(long address, int capacity)
-
mallocStack
public static AIMeshMorphAnim mallocStack()
Returns a newAIMeshMorphAnim
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static AIMeshMorphAnim callocStack()
Returns a newAIMeshMorphAnim
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static AIMeshMorphAnim mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphAnim
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static AIMeshMorphAnim callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphAnim
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static AIMeshMorphAnim.Buffer mallocStack(int capacity)
Returns a newAIMeshMorphAnim.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static AIMeshMorphAnim.Buffer callocStack(int capacity)
Returns a newAIMeshMorphAnim.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static AIMeshMorphAnim.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphAnim.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static AIMeshMorphAnim.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphAnim.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
nmNumKeys
public static int nmNumKeys(long struct)
Unsafe version ofmNumKeys()
.
-
nmKeys
public static AIMeshMorphKey.Buffer nmKeys(long struct)
Unsafe version ofmKeys()
.
-
nmNumKeys
public static void nmNumKeys(long struct, int value)
Sets the specified value to themNumKeys
field of the specifiedstruct
.
-
nmKeys
public static void nmKeys(long struct, AIMeshMorphKey.Buffer value)
Unsafe version ofmKeys
.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-
validate
public static void validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-