Package org.lwjgl.assimp
Class AIMeshAnim
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIMeshAnim
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class AIMeshAnim extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceDescribes vertex-based animations for a single mesh or a group of meshes. Meshes carry the animation data for each frame in theirAIMesh::mAnimMeshesarray. The purpose ofaiMeshAnimis to define keyframes linking each mesh attachment to a particular point in time.Layout
struct aiMeshAnim {struct aiStringmName(); unsigned intmNumKeys();struct aiMeshKey*mKeys(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAIMeshAnim.BufferAn array ofAIMeshAnimstructs.
-
Constructor Summary
Constructors Constructor Description AIMeshAnim(java.nio.ByteBuffer container)Creates aAIMeshAniminstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AIMeshAnimcalloc()Returns a newAIMeshAniminstance allocated withmemCalloc.static AIMeshAnim.Buffercalloc(int capacity)Returns a newAIMeshAnim.Bufferinstance allocated withmemCalloc.static AIMeshAnim.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMeshAnim.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshAnimcalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMeshAniminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshAnimcallocStack()Deprecated.static AIMeshAnim.BuffercallocStack(int capacity)Deprecated.static AIMeshAnim.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMeshAnimcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static AIMeshAnimcreate()Returns a newAIMeshAniminstance allocated withBufferUtils.static AIMeshAnim.Buffercreate(int capacity)Returns a newAIMeshAnim.Bufferinstance allocated withBufferUtils.static AIMeshAnimcreate(long address)Returns a newAIMeshAniminstance for the specified memory address.static AIMeshAnim.Buffercreate(long address, int capacity)Create aAIMeshAnim.Bufferinstance at the specified memory.static AIMeshAnimcreateSafe(long address)static AIMeshAnim.BuffercreateSafe(long address, int capacity)static AIMeshAnimmalloc()Returns a newAIMeshAniminstance allocated withmemAlloc.static AIMeshAnim.Buffermalloc(int capacity)Returns a newAIMeshAnim.Bufferinstance allocated withmemAlloc.static AIMeshAnim.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMeshAnim.Bufferinstance allocated on the specifiedMemoryStack.static AIMeshAnimmalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMeshAniminstance allocated on the specifiedMemoryStack.static AIMeshAnimmallocStack()Deprecated.static AIMeshAnim.BuffermallocStack(int capacity)Deprecated.static AIMeshAnim.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMeshAnimmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.AIMeshKey.BuffermKeys()Key frames of the animation.AIMeshAnimmKeys(AIMeshKey.Buffer value)Sets the address of the specifiedAIMeshKey.Bufferto themKeys()field.AIStringmName()Name of the mesh to be animated.AIMeshAnimmName(java.util.function.Consumer<AIString> consumer)Passes themName()field to the specifiedConsumer.AIMeshAnimmName(AIString value)intmNumKeys()Size of themKeysarray.static AIMeshKey.BuffernmKeys(long struct)Unsafe version ofmKeys().static voidnmKeys(long struct, AIMeshKey.Buffer value)Unsafe version ofmKeys.static AIStringnmName(long struct)Unsafe version ofmName().static voidnmName(long struct, AIString value)Unsafe version ofmName.static intnmNumKeys(long struct)Unsafe version ofmNumKeys().static voidnmNumKeys(long struct, int value)Sets the specified value to themNumKeysfield of the specifiedstruct.AIMeshAnimset(AIMeshAnim src)Copies the specified struct data to this struct.AIMeshAnimset(AIString mName, AIMeshKey.Buffer mKeys)Initializes this struct with the specified values.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
AIMeshAnim
public AIMeshAnim(java.nio.ByteBuffer container)
Creates aAIMeshAniminstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
mName
public AIString 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
public int mNumKeys()
Size of themKeysarray. Must be 1, at least.
-
mKeys
public AIMeshKey.Buffer mKeys()
Key frames of the animation. May not beNULL.
-
mName
public AIMeshAnim mName(AIString value)
-
mName
public AIMeshAnim mName(java.util.function.Consumer<AIString> consumer)
Passes themName()field to the specifiedConsumer.
-
mKeys
public AIMeshAnim mKeys(AIMeshKey.Buffer value)
Sets the address of the specifiedAIMeshKey.Bufferto themKeys()field.
-
set
public AIMeshAnim set(AIString mName, AIMeshKey.Buffer mKeys)
Initializes this struct with the specified values.
-
set
public AIMeshAnim set(AIMeshAnim src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static AIMeshAnim malloc()
Returns a newAIMeshAniminstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static AIMeshAnim calloc()
Returns a newAIMeshAniminstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static AIMeshAnim create()
Returns a newAIMeshAniminstance allocated withBufferUtils.
-
create
public static AIMeshAnim create(long address)
Returns a newAIMeshAniminstance for the specified memory address.
-
createSafe
@Nullable public static AIMeshAnim createSafe(long address)
-
malloc
public static AIMeshAnim.Buffer malloc(int capacity)
Returns a newAIMeshAnim.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static AIMeshAnim.Buffer calloc(int capacity)
Returns a newAIMeshAnim.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static AIMeshAnim.Buffer create(int capacity)
Returns a newAIMeshAnim.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static AIMeshAnim.Buffer create(long address, int capacity)
Create aAIMeshAnim.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static AIMeshAnim.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static AIMeshAnim mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMeshAnim callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMeshAnim mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMeshAnim callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMeshAnim.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AIMeshAnim.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMeshAnim.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AIMeshAnim.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static AIMeshAnim malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshAniminstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static AIMeshAnim calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshAniminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static AIMeshAnim.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshAnim.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static AIMeshAnim.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshAnim.Bufferinstance allocated on the specifiedMemoryStackand 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 AIMeshKey.Buffer nmKeys(long struct)
Unsafe version ofmKeys().
-
nmNumKeys
public static void nmNumKeys(long struct, int value)Sets the specified value to themNumKeysfield of the specifiedstruct.
-
nmKeys
public static void nmKeys(long struct, AIMeshKey.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
-
-