Package org.lwjgl.assimp
Class AIMeshMorphKey
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIMeshMorphKey
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class AIMeshMorphKey extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceBinds a morph anim mesh to a specific point in time.Layout
struct aiMeshMorphKey { doublemTime(); unsigned int *mValues(); double *mWeights(); unsigned intmNumValuesAndWeights(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAIMeshMorphKey.BufferAn array ofAIMeshMorphKeystructs.
-
Constructor Summary
Constructors Constructor Description AIMeshMorphKey(java.nio.ByteBuffer container)Creates aAIMeshMorphKeyinstance 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 AIMeshMorphKeycalloc()Returns a newAIMeshMorphKeyinstance allocated withmemCalloc.static AIMeshMorphKey.Buffercalloc(int capacity)Returns a newAIMeshMorphKey.Bufferinstance allocated withmemCalloc.static AIMeshMorphKey.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMeshMorphKey.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshMorphKeycalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMeshMorphKeyinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshMorphKeycallocStack()Deprecated.static AIMeshMorphKey.BuffercallocStack(int capacity)Deprecated.static AIMeshMorphKey.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMeshMorphKeycallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static AIMeshMorphKeycreate()Returns a newAIMeshMorphKeyinstance allocated withBufferUtils.static AIMeshMorphKey.Buffercreate(int capacity)Returns a newAIMeshMorphKey.Bufferinstance allocated withBufferUtils.static AIMeshMorphKeycreate(long address)Returns a newAIMeshMorphKeyinstance for the specified memory address.static AIMeshMorphKey.Buffercreate(long address, int capacity)Create aAIMeshMorphKey.Bufferinstance at the specified memory.static AIMeshMorphKeycreateSafe(long address)static AIMeshMorphKey.BuffercreateSafe(long address, int capacity)static AIMeshMorphKeymalloc()Returns a newAIMeshMorphKeyinstance allocated withmemAlloc.static AIMeshMorphKey.Buffermalloc(int capacity)Returns a newAIMeshMorphKey.Bufferinstance allocated withmemAlloc.static AIMeshMorphKey.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMeshMorphKey.Bufferinstance allocated on the specifiedMemoryStack.static AIMeshMorphKeymalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMeshMorphKeyinstance allocated on the specifiedMemoryStack.static AIMeshMorphKeymallocStack()Deprecated.static AIMeshMorphKey.BuffermallocStack(int capacity)Deprecated.static AIMeshMorphKey.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMeshMorphKeymallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intmNumValuesAndWeights()the number of values and weightsAIMeshMorphKeymNumValuesAndWeights(int value)Sets the specified value to themNumValuesAndWeights()field.doublemTime()the time of this keyAIMeshMorphKeymTime(double value)Sets the specified value to themTime()field.java.nio.IntBuffermValues()the values at the time of this keyAIMeshMorphKeymValues(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto themValues()field.java.nio.DoubleBuffermWeights()the weights at the time of this keyAIMeshMorphKeymWeights(java.nio.DoubleBuffer value)Sets the address of the specifiedDoubleBufferto themWeights()field.static intnmNumValuesAndWeights(long struct)Unsafe version ofmNumValuesAndWeights().static voidnmNumValuesAndWeights(long struct, int value)Sets the specified value to themNumValuesAndWeightsfield of the specifiedstruct.static doublenmTime(long struct)Unsafe version ofmTime().static voidnmTime(long struct, double value)Unsafe version ofmTime.static java.nio.IntBuffernmValues(long struct)Unsafe version ofmValues.static voidnmValues(long struct, java.nio.IntBuffer value)Unsafe version ofmValues.static java.nio.DoubleBuffernmWeights(long struct)Unsafe version ofmWeights.static voidnmWeights(long struct, java.nio.DoubleBuffer value)Unsafe version ofmWeights.AIMeshMorphKeyset(double mTime, java.nio.IntBuffer mValues, java.nio.DoubleBuffer mWeights, int mNumValuesAndWeights)Initializes this struct with the specified values.AIMeshMorphKeyset(AIMeshMorphKey src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Constructor Detail
-
AIMeshMorphKey
public AIMeshMorphKey(java.nio.ByteBuffer container)
Creates aAIMeshMorphKeyinstance 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
-
mTime
public double mTime()
the time of this key
-
mValues
public java.nio.IntBuffer mValues()
the values at the time of this key
-
mWeights
public java.nio.DoubleBuffer mWeights()
the weights at the time of this key
-
mNumValuesAndWeights
public int mNumValuesAndWeights()
the number of values and weights
-
mTime
public AIMeshMorphKey mTime(double value)
Sets the specified value to themTime()field.
-
mValues
public AIMeshMorphKey mValues(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto themValues()field.
-
mWeights
public AIMeshMorphKey mWeights(java.nio.DoubleBuffer value)
Sets the address of the specifiedDoubleBufferto themWeights()field.
-
mNumValuesAndWeights
public AIMeshMorphKey mNumValuesAndWeights(int value)
Sets the specified value to themNumValuesAndWeights()field.
-
set
public AIMeshMorphKey set(double mTime, java.nio.IntBuffer mValues, java.nio.DoubleBuffer mWeights, int mNumValuesAndWeights)
Initializes this struct with the specified values.
-
set
public AIMeshMorphKey set(AIMeshMorphKey src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static AIMeshMorphKey malloc()
Returns a newAIMeshMorphKeyinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static AIMeshMorphKey calloc()
Returns a newAIMeshMorphKeyinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static AIMeshMorphKey create()
Returns a newAIMeshMorphKeyinstance allocated withBufferUtils.
-
create
public static AIMeshMorphKey create(long address)
Returns a newAIMeshMorphKeyinstance for the specified memory address.
-
createSafe
@Nullable public static AIMeshMorphKey createSafe(long address)
-
malloc
public static AIMeshMorphKey.Buffer malloc(int capacity)
Returns a newAIMeshMorphKey.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static AIMeshMorphKey.Buffer calloc(int capacity)
Returns a newAIMeshMorphKey.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static AIMeshMorphKey.Buffer create(int capacity)
Returns a newAIMeshMorphKey.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static AIMeshMorphKey.Buffer create(long address, int capacity)
Create aAIMeshMorphKey.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static AIMeshMorphKey.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static AIMeshMorphKey mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMeshMorphKey callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMeshMorphKey mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMeshMorphKey callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMeshMorphKey.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AIMeshMorphKey.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMeshMorphKey.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 AIMeshMorphKey.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static AIMeshMorphKey malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKeyinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static AIMeshMorphKey calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKeyinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static AIMeshMorphKey.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKey.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static AIMeshMorphKey.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKey.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmTime
public static double nmTime(long struct)
Unsafe version ofmTime().
-
nmValues
public static java.nio.IntBuffer nmValues(long struct)
Unsafe version ofmValues.
-
nmWeights
public static java.nio.DoubleBuffer nmWeights(long struct)
Unsafe version ofmWeights.
-
nmNumValuesAndWeights
public static int nmNumValuesAndWeights(long struct)
Unsafe version ofmNumValuesAndWeights().
-
nmTime
public static void nmTime(long struct, double value)Unsafe version ofmTime.
-
nmValues
public static void nmValues(long struct, java.nio.IntBuffer value)Unsafe version ofmValues.
-
nmWeights
public static void nmWeights(long struct, java.nio.DoubleBuffer value)Unsafe version ofmWeights.
-
nmNumValuesAndWeights
public static void nmNumValuesAndWeights(long struct, int value)Sets the specified value to themNumValuesAndWeightsfield of the specifiedstruct.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-