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.NativeResourceDescribes a morphing animation of a given mesh.Layout
struct aiMeshMorphAnim {struct aiStringmName(); unsigned intmNumKeys();struct aiMeshMorphKey*mKeys(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAIMeshMorphAnim.BufferAn array ofAIMeshMorphAnimstructs.
-
Constructor Summary
Constructors Constructor Description AIMeshMorphAnim(java.nio.ByteBuffer container)Creates aAIMeshMorphAniminstance 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 AIMeshMorphAnimcalloc()Returns a newAIMeshMorphAniminstance allocated withmemCalloc.static AIMeshMorphAnim.Buffercalloc(int capacity)Returns a newAIMeshMorphAnim.Bufferinstance allocated withmemCalloc.static AIMeshMorphAnim.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMeshMorphAnim.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshMorphAnimcalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMeshMorphAniminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshMorphAnimcallocStack()Deprecated.static AIMeshMorphAnim.BuffercallocStack(int capacity)Deprecated.static AIMeshMorphAnim.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMeshMorphAnimcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static AIMeshMorphAnimcreate()Returns a newAIMeshMorphAniminstance allocated withBufferUtils.static AIMeshMorphAnim.Buffercreate(int capacity)Returns a newAIMeshMorphAnim.Bufferinstance allocated withBufferUtils.static AIMeshMorphAnimcreate(long address)Returns a newAIMeshMorphAniminstance for the specified memory address.static AIMeshMorphAnim.Buffercreate(long address, int capacity)Create aAIMeshMorphAnim.Bufferinstance at the specified memory.static AIMeshMorphAnimcreateSafe(long address)static AIMeshMorphAnim.BuffercreateSafe(long address, int capacity)static AIMeshMorphAnimmalloc()Returns a newAIMeshMorphAniminstance allocated withmemAlloc.static AIMeshMorphAnim.Buffermalloc(int capacity)Returns a newAIMeshMorphAnim.Bufferinstance allocated withmemAlloc.static AIMeshMorphAnim.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMeshMorphAnim.Bufferinstance allocated on the specifiedMemoryStack.static AIMeshMorphAnimmalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMeshMorphAniminstance allocated on the specifiedMemoryStack.static AIMeshMorphAnimmallocStack()Deprecated.static AIMeshMorphAnim.BuffermallocStack(int capacity)Deprecated.static AIMeshMorphAnim.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMeshMorphAnimmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.AIMeshMorphKey.BuffermKeys()Key frames of the animation.AIMeshMorphAnimmKeys(AIMeshMorphKey.Buffer value)Sets the address of the specifiedAIMeshMorphKey.Bufferto themKeys()field.AIStringmName()Name of the mesh to be animated.AIMeshMorphAnimmName(java.util.function.Consumer<AIString> consumer)Passes themName()field to the specifiedConsumer.AIMeshMorphAnimmName(AIString value)intmNumKeys()Size of themKeysarray.static AIMeshMorphKey.BuffernmKeys(long struct)Unsafe version ofmKeys().static voidnmKeys(long struct, AIMeshMorphKey.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.AIMeshMorphAnimset(AIMeshMorphAnim src)Copies the specified struct data to this struct.AIMeshMorphAnimset(AIString mName, AIMeshMorphKey.Buffer mKeys)Initializes this struct with the specified values.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
AIMeshMorphAnim
public AIMeshMorphAnim(java.nio.ByteBuffer container)
Creates aAIMeshMorphAniminstance 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 AIMeshMorphKey.Buffer mKeys()
Key frames of the animation. May not beNULL.
-
mName
public AIMeshMorphAnim mName(AIString value)
-
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.Bufferto 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 newAIMeshMorphAniminstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static AIMeshMorphAnim calloc()
Returns a newAIMeshMorphAniminstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static AIMeshMorphAnim create()
Returns a newAIMeshMorphAniminstance allocated withBufferUtils.
-
create
public static AIMeshMorphAnim create(long address)
Returns a newAIMeshMorphAniminstance for the specified memory address.
-
createSafe
@Nullable public static AIMeshMorphAnim createSafe(long address)
-
malloc
public static AIMeshMorphAnim.Buffer malloc(int capacity)
Returns a newAIMeshMorphAnim.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static AIMeshMorphAnim.Buffer calloc(int capacity)
Returns a newAIMeshMorphAnim.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static AIMeshMorphAnim.Buffer create(int capacity)
Returns a newAIMeshMorphAnim.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static AIMeshMorphAnim.Buffer create(long address, int capacity)
Create aAIMeshMorphAnim.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static AIMeshMorphAnim.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static AIMeshMorphAnim mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMeshMorphAnim callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMeshMorphAnim mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMeshMorphAnim callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMeshMorphAnim.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AIMeshMorphAnim.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMeshMorphAnim.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 AIMeshMorphAnim.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static AIMeshMorphAnim malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphAniminstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static AIMeshMorphAnim calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphAniminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static AIMeshMorphAnim.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphAnim.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static AIMeshMorphAnim.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphAnim.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 AIMeshMorphKey.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, 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
-
-