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.NativeResource
Binds 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 class
AIMeshMorphKey.Buffer
An array ofAIMeshMorphKey
structs.
-
Constructor Summary
Constructors Constructor Description AIMeshMorphKey(java.nio.ByteBuffer container)
Creates aAIMeshMorphKey
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 AIMeshMorphKey
calloc()
Returns a newAIMeshMorphKey
instance allocated withmemCalloc
.static AIMeshMorphKey.Buffer
calloc(int capacity)
Returns a newAIMeshMorphKey.Buffer
instance allocated withmemCalloc
.static AIMeshMorphKey
callocStack()
Returns a newAIMeshMorphKey
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AIMeshMorphKey.Buffer
callocStack(int capacity)
Returns a newAIMeshMorphKey.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static AIMeshMorphKey.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKey.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMeshMorphKey
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKey
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMeshMorphKey
create()
Returns a newAIMeshMorphKey
instance allocated withBufferUtils
.static AIMeshMorphKey.Buffer
create(int capacity)
Returns a newAIMeshMorphKey.Buffer
instance allocated withBufferUtils
.static AIMeshMorphKey
create(long address)
Returns a newAIMeshMorphKey
instance for the specified memory address.static AIMeshMorphKey.Buffer
create(long address, int capacity)
Create aAIMeshMorphKey.Buffer
instance at the specified memory.static AIMeshMorphKey
createSafe(long address)
static AIMeshMorphKey.Buffer
createSafe(long address, int capacity)
static AIMeshMorphKey
malloc()
Returns a newAIMeshMorphKey
instance allocated withmemAlloc
.static AIMeshMorphKey.Buffer
malloc(int capacity)
Returns a newAIMeshMorphKey.Buffer
instance allocated withmemAlloc
.static AIMeshMorphKey
mallocStack()
Returns a newAIMeshMorphKey
instance allocated on the thread-localMemoryStack
.static AIMeshMorphKey.Buffer
mallocStack(int capacity)
Returns a newAIMeshMorphKey.Buffer
instance allocated on the thread-localMemoryStack
.static AIMeshMorphKey.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKey.Buffer
instance allocated on the specifiedMemoryStack
.static AIMeshMorphKey
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKey
instance allocated on the specifiedMemoryStack
.int
mNumValuesAndWeights()
Returns the value of themNumValuesAndWeights
field.AIMeshMorphKey
mNumValuesAndWeights(int value)
Sets the specified value to themNumValuesAndWeights
field.double
mTime()
Returns the value of themTime
field.AIMeshMorphKey
mTime(double value)
Sets the specified value to themTime
field.java.nio.IntBuffer
mValues()
Returns aIntBuffer
view of the data pointed to by themValues
field.AIMeshMorphKey
mValues(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to themValues
field.java.nio.DoubleBuffer
mWeights()
Returns aDoubleBuffer
view of the data pointed to by themWeights
field.AIMeshMorphKey
mWeights(java.nio.DoubleBuffer value)
Sets the address of the specifiedDoubleBuffer
to themWeights
field.static int
nmNumValuesAndWeights(long struct)
Unsafe version ofmNumValuesAndWeights()
.static void
nmNumValuesAndWeights(long struct, int value)
Sets the specified value to themNumValuesAndWeights
field of the specifiedstruct
.static double
nmTime(long struct)
Unsafe version ofmTime()
.static void
nmTime(long struct, double value)
Unsafe version ofmTime
.static java.nio.IntBuffer
nmValues(long struct)
Unsafe version ofmValues
.static void
nmValues(long struct, java.nio.IntBuffer value)
Unsafe version ofmValues
.static java.nio.DoubleBuffer
nmWeights(long struct)
Unsafe version ofmWeights
.static void
nmWeights(long struct, java.nio.DoubleBuffer value)
Unsafe version ofmWeights
.AIMeshMorphKey
set(double mTime, java.nio.IntBuffer mValues, java.nio.DoubleBuffer mWeights, int mNumValuesAndWeights)
Initializes this struct with the specified values.AIMeshMorphKey
set(AIMeshMorphKey src)
Copies the specified struct data to this struct.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
-
AIMeshMorphKey
public AIMeshMorphKey(java.nio.ByteBuffer container)
Creates aAIMeshMorphKey
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
-
mTime
public double mTime()
Returns the value of themTime
field.
-
mValues
public java.nio.IntBuffer mValues()
Returns aIntBuffer
view of the data pointed to by themValues
field.
-
mWeights
public java.nio.DoubleBuffer mWeights()
Returns aDoubleBuffer
view of the data pointed to by themWeights
field.
-
mNumValuesAndWeights
public int mNumValuesAndWeights()
Returns the value of themNumValuesAndWeights
field.
-
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 specifiedIntBuffer
to themValues
field.
-
mWeights
public AIMeshMorphKey mWeights(java.nio.DoubleBuffer value)
Sets the address of the specifiedDoubleBuffer
to 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 newAIMeshMorphKey
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static AIMeshMorphKey calloc()
Returns a newAIMeshMorphKey
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static AIMeshMorphKey create()
Returns a newAIMeshMorphKey
instance allocated withBufferUtils
.
-
create
public static AIMeshMorphKey create(long address)
Returns a newAIMeshMorphKey
instance for the specified memory address.
-
createSafe
@Nullable public static AIMeshMorphKey createSafe(long address)
-
malloc
public static AIMeshMorphKey.Buffer malloc(int capacity)
Returns a newAIMeshMorphKey.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static AIMeshMorphKey.Buffer calloc(int capacity)
Returns a newAIMeshMorphKey.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMeshMorphKey.Buffer create(int capacity)
Returns a newAIMeshMorphKey.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static AIMeshMorphKey.Buffer create(long address, int capacity)
Create aAIMeshMorphKey.Buffer
instance 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 newAIMeshMorphKey
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static AIMeshMorphKey callocStack()
Returns a newAIMeshMorphKey
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static AIMeshMorphKey mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKey
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static AIMeshMorphKey callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKey
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static AIMeshMorphKey.Buffer callocStack(int capacity)
Returns a newAIMeshMorphKey.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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 themNumValuesAndWeights
field 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
-
-