Package org.lwjgl.assimp
Class AIMeshMorphKey
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct aiMeshMorphKey {
double mTime;
unsigned int * mValues;
double * mWeights;
unsigned int mNumValuesAndWeights;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionAIMeshMorphKey
(ByteBuffer container) Creates aAIMeshMorphKey
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic 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, MemoryStack stack) Returns a newAIMeshMorphKey.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMeshMorphKey
calloc
(MemoryStack stack) Returns a newAIMeshMorphKey
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIMeshMorphKey
Deprecated.static AIMeshMorphKey.Buffer
callocStack
(int capacity) Deprecated.static AIMeshMorphKey.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static AIMeshMorphKey
callocStack
(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 @Nullable AIMeshMorphKey
createSafe
(long address) static @Nullable 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, MemoryStack stack) Returns a newAIMeshMorphKey.Buffer
instance allocated on the specifiedMemoryStack
.static AIMeshMorphKey
malloc
(MemoryStack stack) Returns a newAIMeshMorphKey
instance allocated on the specifiedMemoryStack
.static AIMeshMorphKey
Deprecated.static AIMeshMorphKey.Buffer
mallocStack
(int capacity) Deprecated.static AIMeshMorphKey.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static AIMeshMorphKey
mallocStack
(MemoryStack stack) Deprecated.int
mNumValuesAndWeights
(int value) Sets the specified value to themNumValuesAndWeights
field.double
mTime()
mTime
(double value) Sets the specified value to themTime
field.mValues()
Sets the address of the specifiedIntBuffer
to themValues
field.mWeights()
mWeights
(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 IntBuffer
nmValues
(long struct) Unsafe version ofmValues
.static void
Unsafe version ofmValues
.static DoubleBuffer
nmWeights
(long struct) Unsafe version ofmWeights
.static void
nmWeights
(long struct, DoubleBuffer value) Unsafe version ofmWeights
.set
(double mTime, IntBuffer mValues, DoubleBuffer mWeights, int mNumValuesAndWeights) Initializes this struct with the specified values.set
(AIMeshMorphKey src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MTIME
public static final int MTIMEThe struct member offsets. -
MVALUES
public static final int MVALUESThe struct member offsets. -
MWEIGHTS
public static final int MWEIGHTSThe struct member offsets. -
MNUMVALUESANDWEIGHTS
public static final int MNUMVALUESANDWEIGHTSThe struct member offsets.
-
-
Constructor Details
-
AIMeshMorphKey
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 Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<AIMeshMorphKey>
-
mTime
public double mTime()- Returns:
- the value of the
mTime
field.
-
mValues
- Returns:
- a
IntBuffer
view of the data pointed to by themValues
field.
-
mWeights
- Returns:
- a
DoubleBuffer
view of the data pointed to by themWeights
field.
-
mNumValuesAndWeights
public int mNumValuesAndWeights()- Returns:
- the value of the
mNumValuesAndWeights
field.
-
mTime
Sets the specified value to themTime
field. -
mValues
Sets the address of the specifiedIntBuffer
to themValues
field. -
mWeights
Sets the address of the specifiedDoubleBuffer
to themWeights
field. -
mNumValuesAndWeights
Sets the specified value to themNumValuesAndWeights
field. -
set
public AIMeshMorphKey set(double mTime, IntBuffer mValues, DoubleBuffer mWeights, int mNumValuesAndWeights) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newAIMeshMorphKey
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newAIMeshMorphKey
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newAIMeshMorphKey
instance allocated withBufferUtils
. -
create
Returns a newAIMeshMorphKey
instance for the specified memory address. -
createSafe
-
malloc
Returns a newAIMeshMorphKey.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newAIMeshMorphKey.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newAIMeshMorphKey.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aAIMeshMorphKey.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newAIMeshMorphKey
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newAIMeshMorphKey
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newAIMeshMorphKey.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newAIMeshMorphKey.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nmTime
public static double nmTime(long struct) Unsafe version ofmTime()
. -
nmValues
Unsafe version ofmValues
. -
nmWeights
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
Unsafe version ofmValues
. -
nmWeights
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
-