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.Member documentation
mTime– the time of this keymValues– the values at the time of this keymWeights– the weights at the time of this keymNumValuesAndWeights– the number of values and weights
Layout
struct aiMeshMorphKey { double mTime; unsigned int * mValues; double * mWeights; unsigned int mNumValuesAndWeights; }
-
-
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 Modifier and Type Method Description static AIMeshMorphKeycalloc()Returns a newAIMeshMorphKeyinstance allocated withmemCalloc.static AIMeshMorphKey.Buffercalloc(int capacity)Returns a newAIMeshMorphKey.Bufferinstance allocated withmemCalloc.static AIMeshMorphKeycallocStack()Returns a newAIMeshMorphKeyinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AIMeshMorphKey.BuffercallocStack(int capacity)Returns a newAIMeshMorphKey.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AIMeshMorphKey.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMeshMorphKey.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshMorphKeycallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAIMeshMorphKeyinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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 AIMeshMorphKeymallocStack()Returns a newAIMeshMorphKeyinstance allocated on the thread-localMemoryStack.static AIMeshMorphKey.BuffermallocStack(int capacity)Returns a newAIMeshMorphKey.Bufferinstance allocated on the thread-localMemoryStack.static AIMeshMorphKey.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMeshMorphKey.Bufferinstance allocated on the specifiedMemoryStack.static AIMeshMorphKeymallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAIMeshMorphKeyinstance allocated on the specifiedMemoryStack.intmNumValuesAndWeights()Returns the value of themNumValuesAndWeightsfield.AIMeshMorphKeymNumValuesAndWeights(int value)Sets the specified value to themNumValuesAndWeightsfield.doublemTime()Returns the value of themTimefield.AIMeshMorphKeymTime(double value)Sets the specified value to themTimefield.java.nio.IntBuffermValues()Returns aIntBufferview of the data pointed to by themValuesfield.AIMeshMorphKeymValues(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto themValuesfield.java.nio.DoubleBuffermWeights()Returns aDoubleBufferview of the data pointed to by themWeightsfield.AIMeshMorphKeymWeights(java.nio.DoubleBuffer value)Sets the address of the specifiedDoubleBufferto themWeightsfield.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.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
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()
Returns the value of themTimefield.
-
mValues
public java.nio.IntBuffer mValues()
Returns aIntBufferview of the data pointed to by themValuesfield.
-
mWeights
public java.nio.DoubleBuffer mWeights()
Returns aDoubleBufferview of the data pointed to by themWeightsfield.
-
mNumValuesAndWeights
public int mNumValuesAndWeights()
Returns the value of themNumValuesAndWeightsfield.
-
mTime
public AIMeshMorphKey mTime(double value)
Sets the specified value to themTimefield.
-
mValues
public AIMeshMorphKey mValues(java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto themValuesfield.
-
mWeights
public AIMeshMorphKey mWeights(java.nio.DoubleBuffer value)
Sets the address of the specifiedDoubleBufferto themWeightsfield.
-
mNumValuesAndWeights
public AIMeshMorphKey mNumValuesAndWeights(int value)
Sets the specified value to themNumValuesAndWeightsfield.
-
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
public static AIMeshMorphKey mallocStack()
Returns a newAIMeshMorphKeyinstance allocated on the thread-localMemoryStack.
-
callocStack
public static AIMeshMorphKey callocStack()
Returns a newAIMeshMorphKeyinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static AIMeshMorphKey mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKeyinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static AIMeshMorphKey callocStack(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
-
mallocStack
public static AIMeshMorphKey.Buffer mallocStack(int capacity)
Returns a newAIMeshMorphKey.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static AIMeshMorphKey.Buffer callocStack(int capacity)
Returns a newAIMeshMorphKey.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static AIMeshMorphKey.Buffer mallocStack(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
-
callocStack
public static AIMeshMorphKey.Buffer callocStack(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
-
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
-
-