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.Layout
struct aiMeshMorphKey { double
mTime()
; unsigned int *mValues()
; double *mWeights()
; unsigned intmNumValuesAndWeights()
; }
-
-
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 Deprecated 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.Buffer
calloc(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
calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKey
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMeshMorphKey
callocStack()
Deprecated.static AIMeshMorphKey.Buffer
callocStack(int capacity)
Deprecated.static AIMeshMorphKey.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIMeshMorphKey
callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.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.Buffer
malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKey.Buffer
instance allocated on the specifiedMemoryStack
.static AIMeshMorphKey
malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshMorphKey
instance allocated on the specifiedMemoryStack
.static AIMeshMorphKey
mallocStack()
Deprecated.static AIMeshMorphKey.Buffer
mallocStack(int capacity)
Deprecated.static AIMeshMorphKey.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.static AIMeshMorphKey
mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.int
mNumValuesAndWeights()
the number of values and weightsAIMeshMorphKey
mNumValuesAndWeights(int value)
Sets the specified value to themNumValuesAndWeights()
field.double
mTime()
the time of this keyAIMeshMorphKey
mTime(double value)
Sets the specified value to themTime()
field.java.nio.IntBuffer
mValues()
the values at the time of this keyAIMeshMorphKey
mValues(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to themValues()
field.java.nio.DoubleBuffer
mWeights()
the weights at the time of this keyAIMeshMorphKey
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
.
-
-
-
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()
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 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
@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 newAIMeshMorphKey
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
public static AIMeshMorphKey calloc(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
-
malloc
public static AIMeshMorphKey.Buffer malloc(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
-
calloc
public static AIMeshMorphKey.Buffer calloc(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
-
-