Package org.lwjgl.assimp
Class AISkeletonBone
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct aiSkeletonBone {
int mParent;
{@link AINode struct aiNode} * mArmature;
{@link AINode struct aiNode} * mNode;
unsigned int mNumnWeights;
{@link AIMesh struct aiMesh} * mMeshId;
{@link AIVertexWeight struct aiVertexWeight} * mWeights;
{@link AIMatrix4x4 struct aiMatrix4x4} mOffsetMatrix;
{@link AIMatrix4x4 struct aiMatrix4x4} mLocalMatrix;
}
-
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 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
ConstructorsConstructorDescriptionAISkeletonBone
(ByteBuffer container) Creates aAISkeletonBone
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AISkeletonBone
calloc()
Returns a newAISkeletonBone
instance allocated withmemCalloc
.static AISkeletonBone.Buffer
calloc
(int capacity) Returns a newAISkeletonBone.Buffer
instance allocated withmemCalloc
.static AISkeletonBone.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newAISkeletonBone.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AISkeletonBone
calloc
(MemoryStack stack) Returns a newAISkeletonBone
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AISkeletonBone
create()
Returns a newAISkeletonBone
instance allocated withBufferUtils
.static AISkeletonBone.Buffer
create
(int capacity) Returns a newAISkeletonBone.Buffer
instance allocated withBufferUtils
.static AISkeletonBone
create
(long address) Returns a newAISkeletonBone
instance for the specified memory address.static AISkeletonBone.Buffer
create
(long address, int capacity) Create aAISkeletonBone.Buffer
instance at the specified memory.static @Nullable AISkeletonBone
createSafe
(long address) static @Nullable AISkeletonBone.Buffer
createSafe
(long address, int capacity) static AISkeletonBone
malloc()
Returns a newAISkeletonBone
instance allocated withmemAlloc
.static AISkeletonBone.Buffer
malloc
(int capacity) Returns a newAISkeletonBone.Buffer
instance allocated withmemAlloc
.static AISkeletonBone.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newAISkeletonBone.Buffer
instance allocated on the specifiedMemoryStack
.static AISkeletonBone
malloc
(MemoryStack stack) Returns a newAISkeletonBone
instance allocated on the specifiedMemoryStack
.@Nullable AINode
Sets the address of the specifiedAINode
to themArmature
field.mLocalMatrix
(Consumer<AIMatrix4x4> consumer) Passes themLocalMatrix
field to the specifiedConsumer
.mLocalMatrix
(AIMatrix4x4 value) Copies the specifiedAIMatrix4x4
to themLocalMatrix
field.mMeshId()
mMeshId
(AIMesh.Buffer value) Sets the address of the specifiedAIMesh.Buffer
to themMeshId
field.@Nullable AINode
mNode()
Sets the address of the specifiedAINode
to themNode
field.int
mNumnWeights
(int value) Sets the specified value to themNumnWeights
field.mOffsetMatrix
(Consumer<AIMatrix4x4> consumer) Passes themOffsetMatrix
field to the specifiedConsumer
.mOffsetMatrix
(AIMatrix4x4 value) Copies the specifiedAIMatrix4x4
to themOffsetMatrix
field.int
mParent()
mParent
(int value) Sets the specified value to themParent
field.mWeights()
mWeights
(AIVertexWeight.Buffer value) Sets the address of the specifiedAIVertexWeight.Buffer
to themWeights
field.static @Nullable AINode
nmArmature
(long struct) Unsafe version ofmArmature()
.static void
nmArmature
(long struct, @Nullable AINode value) Unsafe version ofmArmature
.static AIMatrix4x4
nmLocalMatrix
(long struct) Unsafe version ofmLocalMatrix()
.static void
nmLocalMatrix
(long struct, AIMatrix4x4 value) Unsafe version ofmLocalMatrix
.static AIMesh.Buffer
nmMeshId
(long struct) Unsafe version ofmMeshId()
.static void
nmMeshId
(long struct, AIMesh.Buffer value) Unsafe version ofmMeshId
.static @Nullable AINode
nmNode
(long struct) Unsafe version ofmNode()
.static void
Unsafe version ofmNode
.static int
nmNumnWeights
(long struct) Unsafe version ofmNumnWeights()
.static void
nmNumnWeights
(long struct, int value) Sets the specified value to themNumnWeights
field of the specifiedstruct
.static AIMatrix4x4
nmOffsetMatrix
(long struct) Unsafe version ofmOffsetMatrix()
.static void
nmOffsetMatrix
(long struct, AIMatrix4x4 value) Unsafe version ofmOffsetMatrix
.static int
nmParent
(long struct) Unsafe version ofmParent()
.static void
nmParent
(long struct, int value) Unsafe version ofmParent
.static AIVertexWeight.Buffer
nmWeights
(long struct) Unsafe version ofmWeights()
.static void
nmWeights
(long struct, AIVertexWeight.Buffer value) Unsafe version ofmWeights
.set
(int mParent, @Nullable AINode mArmature, @Nullable AINode mNode, int mNumnWeights, AIMesh.Buffer mMeshId, AIVertexWeight.Buffer mWeights, AIMatrix4x4 mOffsetMatrix, AIMatrix4x4 mLocalMatrix) Initializes this struct with the specified values.set
(AISkeletonBone 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. -
MPARENT
public static final int MPARENTThe struct member offsets. -
MARMATURE
public static final int MARMATUREThe struct member offsets. -
MNODE
public static final int MNODEThe struct member offsets. -
MNUMNWEIGHTS
public static final int MNUMNWEIGHTSThe struct member offsets. -
MMESHID
public static final int MMESHIDThe struct member offsets. -
MWEIGHTS
public static final int MWEIGHTSThe struct member offsets. -
MOFFSETMATRIX
public static final int MOFFSETMATRIXThe struct member offsets. -
MLOCALMATRIX
public static final int MLOCALMATRIXThe struct member offsets.
-
-
Constructor Details
-
AISkeletonBone
Creates aAISkeletonBone
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<AISkeletonBone>
-
mParent
public int mParent()- Returns:
- the value of the
mParent
field.
-
mArmature
- Returns:
- a
AINode
view of the struct pointed to by themArmature
field.
-
mNode
- Returns:
- a
AINode
view of the struct pointed to by themNode
field.
-
mNumnWeights
public int mNumnWeights()- Returns:
- the value of the
mNumnWeights
field.
-
mMeshId
- Returns:
- a
AIMesh.Buffer
view of the struct array pointed to by themMeshId
field.
-
mWeights
- Returns:
- a
AIVertexWeight.Buffer
view of the struct array pointed to by themWeights
field.
-
mOffsetMatrix
- Returns:
- a
AIMatrix4x4
view of themOffsetMatrix
field.
-
mLocalMatrix
- Returns:
- a
AIMatrix4x4
view of themLocalMatrix
field.
-
mParent
Sets the specified value to themParent
field. -
mArmature
Sets the address of the specifiedAINode
to themArmature
field. -
mNode
Sets the address of the specifiedAINode
to themNode
field. -
mNumnWeights
Sets the specified value to themNumnWeights
field. -
mMeshId
Sets the address of the specifiedAIMesh.Buffer
to themMeshId
field. -
mWeights
Sets the address of the specifiedAIVertexWeight.Buffer
to themWeights
field. -
mOffsetMatrix
Copies the specifiedAIMatrix4x4
to themOffsetMatrix
field. -
mOffsetMatrix
Passes themOffsetMatrix
field to the specifiedConsumer
. -
mLocalMatrix
Copies the specifiedAIMatrix4x4
to themLocalMatrix
field. -
mLocalMatrix
Passes themLocalMatrix
field to the specifiedConsumer
. -
set
public AISkeletonBone set(int mParent, @Nullable AINode mArmature, @Nullable AINode mNode, int mNumnWeights, AIMesh.Buffer mMeshId, AIVertexWeight.Buffer mWeights, AIMatrix4x4 mOffsetMatrix, AIMatrix4x4 mLocalMatrix) 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 newAISkeletonBone
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newAISkeletonBone
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newAISkeletonBone
instance allocated withBufferUtils
. -
create
Returns a newAISkeletonBone
instance for the specified memory address. -
createSafe
-
malloc
Returns a newAISkeletonBone.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newAISkeletonBone.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newAISkeletonBone.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aAISkeletonBone.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newAISkeletonBone
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newAISkeletonBone
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newAISkeletonBone.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newAISkeletonBone.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nmParent
public static int nmParent(long struct) Unsafe version ofmParent()
. -
nmArmature
Unsafe version ofmArmature()
. -
nmNode
Unsafe version ofmNode()
. -
nmNumnWeights
public static int nmNumnWeights(long struct) Unsafe version ofmNumnWeights()
. -
nmMeshId
Unsafe version ofmMeshId()
. -
nmWeights
Unsafe version ofmWeights()
. -
nmOffsetMatrix
Unsafe version ofmOffsetMatrix()
. -
nmLocalMatrix
Unsafe version ofmLocalMatrix()
. -
nmParent
public static void nmParent(long struct, int value) Unsafe version ofmParent
. -
nmArmature
Unsafe version ofmArmature
. -
nmNode
Unsafe version ofmNode
. -
nmNumnWeights
public static void nmNumnWeights(long struct, int value) Sets the specified value to themNumnWeights
field of the specifiedstruct
. -
nmMeshId
Unsafe version ofmMeshId
. -
nmWeights
Unsafe version ofmWeights
. -
nmOffsetMatrix
Unsafe version ofmOffsetMatrix
. -
nmLocalMatrix
Unsafe version ofmLocalMatrix
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-