Package org.lwjgl.assimp
Class AINodeAnim
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct aiNodeAnim {
struct aiString mNodeName;
unsigned int mNumPositionKeys;
struct aiVectorKey * mPositionKeys;
unsigned int mNumRotationKeys;
struct aiQuatKey * mRotationKeys;
unsigned int mNumScalingKeys;
struct aiVectorKey * mScalingKeys;
aiAnimBehaviour mPreState;
aiAnimBehaviour mPostState;
}-
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 member offsets.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
ConstructorsConstructorDescriptionAINodeAnim(ByteBuffer container) Creates aAINodeAniminstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AINodeAnimcalloc()Returns a newAINodeAniminstance allocated withmemCalloc.static AINodeAnim.Buffercalloc(int capacity) Returns a newAINodeAnim.Bufferinstance allocated withmemCalloc.static AINodeAnim.Buffercalloc(int capacity, MemoryStack stack) Returns a newAINodeAnim.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AINodeAnimcalloc(MemoryStack stack) Returns a newAINodeAniminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AINodeAnimcreate()Returns a newAINodeAniminstance allocated withBufferUtils.static AINodeAnim.Buffercreate(int capacity) Returns a newAINodeAnim.Bufferinstance allocated withBufferUtils.static AINodeAnimcreate(long address) Returns a newAINodeAniminstance for the specified memory address.static AINodeAnim.Buffercreate(long address, int capacity) Create aAINodeAnim.Bufferinstance at the specified memory.static @Nullable AINodeAnimcreateSafe(long address) static @Nullable AINodeAnim.BuffercreateSafe(long address, int capacity) static AINodeAnimmalloc()Returns a newAINodeAniminstance allocated withmemAlloc.static AINodeAnim.Buffermalloc(int capacity) Returns a newAINodeAnim.Bufferinstance allocated withmemAlloc.static AINodeAnim.Buffermalloc(int capacity, MemoryStack stack) Returns a newAINodeAnim.Bufferinstance allocated on the specifiedMemoryStack.static AINodeAnimmalloc(MemoryStack stack) Returns a newAINodeAniminstance allocated on the specifiedMemoryStack.Passes themNodeNamefield to the specifiedConsumer.Copies the specifiedAIStringto themNodeNamefield.intintint@Nullable AIVectorKey.BuffermPositionKeys(@Nullable AIVectorKey.Buffer value) Sets the address of the specifiedAIVectorKey.Bufferto themPositionKeysfield.intmPostState(int value) Sets the specified value to themPostStatefield.intmPreState(int value) Sets the specified value to themPreStatefield.@Nullable AIQuatKey.BuffermRotationKeys(@Nullable AIQuatKey.Buffer value) Sets the address of the specifiedAIQuatKey.Bufferto themRotationKeysfield.@Nullable AIVectorKey.BuffermScalingKeys(@Nullable AIVectorKey.Buffer value) Sets the address of the specifiedAIVectorKey.Bufferto themScalingKeysfield.static AIStringnmNodeName(long struct) Unsafe version ofmNodeName().static voidnmNodeName(long struct, AIString value) Unsafe version ofmNodeName.static intnmNumPositionKeys(long struct) Unsafe version ofmNumPositionKeys().static voidnmNumPositionKeys(long struct, int value) Sets the specified value to themNumPositionKeysfield of the specifiedstruct.static intnmNumRotationKeys(long struct) Unsafe version ofmNumRotationKeys().static voidnmNumRotationKeys(long struct, int value) Sets the specified value to themNumRotationKeysfield of the specifiedstruct.static intnmNumScalingKeys(long struct) Unsafe version ofmNumScalingKeys().static voidnmNumScalingKeys(long struct, int value) Sets the specified value to themNumScalingKeysfield of the specifiedstruct.static @Nullable AIVectorKey.BuffernmPositionKeys(long struct) Unsafe version ofmPositionKeys().static voidnmPositionKeys(long struct, @Nullable AIVectorKey.Buffer value) Unsafe version ofmPositionKeys.static intnmPostState(long struct) Unsafe version ofmPostState().static voidnmPostState(long struct, int value) Unsafe version ofmPostState.static intnmPreState(long struct) Unsafe version ofmPreState().static voidnmPreState(long struct, int value) Unsafe version ofmPreState.static @Nullable AIQuatKey.BuffernmRotationKeys(long struct) Unsafe version ofmRotationKeys().static voidnmRotationKeys(long struct, @Nullable AIQuatKey.Buffer value) Unsafe version ofmRotationKeys.static @Nullable AIVectorKey.BuffernmScalingKeys(long struct) Unsafe version ofmScalingKeys().static voidnmScalingKeys(long struct, @Nullable AIVectorKey.Buffer value) Unsafe version ofmScalingKeys.set(AINodeAnim src) Copies the specified struct data to this struct.set(AIString mNodeName, @Nullable AIVectorKey.Buffer mPositionKeys, @Nullable AIQuatKey.Buffer mRotationKeys, @Nullable AIVectorKey.Buffer mScalingKeys, int mPreState, int mPostState) Initializes this struct with the specified values.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. -
MNODENAME
public static final int MNODENAMEThe struct member offsets. -
MNUMPOSITIONKEYS
public static final int MNUMPOSITIONKEYSThe struct member offsets. -
MPOSITIONKEYS
public static final int MPOSITIONKEYSThe struct member offsets. -
MNUMROTATIONKEYS
public static final int MNUMROTATIONKEYSThe struct member offsets. -
MROTATIONKEYS
public static final int MROTATIONKEYSThe struct member offsets. -
MNUMSCALINGKEYS
public static final int MNUMSCALINGKEYSThe struct member offsets. -
MSCALINGKEYS
public static final int MSCALINGKEYSThe struct member offsets. -
MPRESTATE
public static final int MPRESTATEThe struct member offsets. -
MPOSTSTATE
public static final int MPOSTSTATEThe struct member offsets.
-
-
Constructor Details
-
AINodeAnim
Creates aAINodeAniminstance 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<AINodeAnim>
-
mNodeName
- Returns:
- a
AIStringview of themNodeNamefield.
-
mNumPositionKeys
public int mNumPositionKeys()- Returns:
- the value of the
mNumPositionKeysfield.
-
mPositionKeys
- Returns:
- a
AIVectorKey.Bufferview of the struct array pointed to by themPositionKeysfield.
-
mNumRotationKeys
public int mNumRotationKeys()- Returns:
- the value of the
mNumRotationKeysfield.
-
mRotationKeys
- Returns:
- a
AIQuatKey.Bufferview of the struct array pointed to by themRotationKeysfield.
-
mNumScalingKeys
public int mNumScalingKeys()- Returns:
- the value of the
mNumScalingKeysfield.
-
mScalingKeys
- Returns:
- a
AIVectorKey.Bufferview of the struct array pointed to by themScalingKeysfield.
-
mPreState
public int mPreState()- Returns:
- the value of the
mPreStatefield.
-
mPostState
public int mPostState()- Returns:
- the value of the
mPostStatefield.
-
mNodeName
Copies the specifiedAIStringto themNodeNamefield. -
mNodeName
Passes themNodeNamefield to the specifiedConsumer. -
mPositionKeys
Sets the address of the specifiedAIVectorKey.Bufferto themPositionKeysfield. -
mRotationKeys
Sets the address of the specifiedAIQuatKey.Bufferto themRotationKeysfield. -
mScalingKeys
Sets the address of the specifiedAIVectorKey.Bufferto themScalingKeysfield. -
mPreState
Sets the specified value to themPreStatefield. -
mPostState
Sets the specified value to themPostStatefield. -
set
public AINodeAnim set(AIString mNodeName, @Nullable AIVectorKey.Buffer mPositionKeys, @Nullable AIQuatKey.Buffer mRotationKeys, @Nullable AIVectorKey.Buffer mScalingKeys, int mPreState, int mPostState) 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 newAINodeAniminstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAINodeAniminstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAINodeAniminstance allocated withBufferUtils. -
create
Returns a newAINodeAniminstance for the specified memory address. -
createSafe
-
malloc
Returns a newAINodeAnim.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAINodeAnim.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAINodeAnim.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAINodeAnim.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newAINodeAniminstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAINodeAniminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAINodeAnim.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAINodeAnim.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmNodeName
Unsafe version ofmNodeName(). -
nmNumPositionKeys
public static int nmNumPositionKeys(long struct) Unsafe version ofmNumPositionKeys(). -
nmPositionKeys
Unsafe version ofmPositionKeys(). -
nmNumRotationKeys
public static int nmNumRotationKeys(long struct) Unsafe version ofmNumRotationKeys(). -
nmRotationKeys
Unsafe version ofmRotationKeys(). -
nmNumScalingKeys
public static int nmNumScalingKeys(long struct) Unsafe version ofmNumScalingKeys(). -
nmScalingKeys
Unsafe version ofmScalingKeys(). -
nmPreState
public static int nmPreState(long struct) Unsafe version ofmPreState(). -
nmPostState
public static int nmPostState(long struct) Unsafe version ofmPostState(). -
nmNodeName
Unsafe version ofmNodeName. -
nmNumPositionKeys
public static void nmNumPositionKeys(long struct, int value) Sets the specified value to themNumPositionKeysfield of the specifiedstruct. -
nmPositionKeys
Unsafe version ofmPositionKeys. -
nmNumRotationKeys
public static void nmNumRotationKeys(long struct, int value) Sets the specified value to themNumRotationKeysfield of the specifiedstruct. -
nmRotationKeys
Unsafe version ofmRotationKeys. -
nmNumScalingKeys
public static void nmNumScalingKeys(long struct, int value) Sets the specified value to themNumScalingKeysfield of the specifiedstruct. -
nmScalingKeys
Unsafe version ofmScalingKeys. -
nmPreState
public static void nmPreState(long struct, int value) Unsafe version ofmPreState. -
nmPostState
public static void nmPostState(long struct, int value) Unsafe version ofmPostState. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-