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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe 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 aAIMeshMorphKeyinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIMeshMorphKeycalloc()Returns a newAIMeshMorphKeyinstance allocated withmemCalloc.static AIMeshMorphKey.Buffercalloc(int capacity) Returns a newAIMeshMorphKey.Bufferinstance allocated withmemCalloc.static AIMeshMorphKey.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIMeshMorphKey.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshMorphKeycalloc(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 @Nullable AIMeshMorphKeycreateSafe(long address) static @Nullable 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, MemoryStack stack) Returns a newAIMeshMorphKey.Bufferinstance allocated on the specifiedMemoryStack.static AIMeshMorphKeymalloc(MemoryStack stack) Returns a newAIMeshMorphKeyinstance allocated on the specifiedMemoryStack.intmNumValuesAndWeights(int value) Sets the specified value to themNumValuesAndWeightsfield.doublemTime()mTime(double value) Sets the specified value to themTimefield.mValues()Sets the address of the specifiedIntBufferto themValuesfield.mWeights()mWeights(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 IntBuffernmValues(long struct) Unsafe version ofmValues.static voidUnsafe version ofmValues.static DoubleBuffernmWeights(long struct) Unsafe version ofmWeights.static voidnmWeights(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.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<AIMeshMorphKey>
-
mTime
public double mTime()- Returns:
- the value of the
mTimefield.
-
mValues
- Returns:
- a
IntBufferview of the data pointed to by themValuesfield.
-
mWeights
- Returns:
- a
DoubleBufferview of the data pointed to by themWeightsfield.
-
mNumValuesAndWeights
public int mNumValuesAndWeights()- Returns:
- the value of the
mNumValuesAndWeightsfield.
-
mTime
Sets the specified value to themTimefield. -
mValues
Sets the address of the specifiedIntBufferto themValuesfield. -
mWeights
Sets the address of the specifiedDoubleBufferto themWeightsfield. -
mNumValuesAndWeights
Sets the specified value to themNumValuesAndWeightsfield. -
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 newAIMeshMorphKeyinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIMeshMorphKeyinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIMeshMorphKeyinstance allocated withBufferUtils. -
create
Returns a newAIMeshMorphKeyinstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIMeshMorphKey.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIMeshMorphKey.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIMeshMorphKey.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIMeshMorphKey.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newAIMeshMorphKeyinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIMeshMorphKeyinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIMeshMorphKey.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIMeshMorphKey.Bufferinstance allocated on the specifiedMemoryStackand 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 themNumValuesAndWeightsfield of the specifiedstruct. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-