Package org.lwjgl.assimp
Class AIBone
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct aiBone {
{@link AIString struct aiString} mName;
unsigned int mNumWeights;
{@link AINode struct aiNode} * mArmature;
{@link AINode struct aiNode} * mNode;
{@link AIVertexWeight struct aiVertexWeight} * mWeights;
{@link AIMatrix4x4 struct aiMatrix4x4} mOffsetMatrix;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionAIBone(ByteBuffer container) Creates aAIBoneinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIBonecalloc()Returns a newAIBoneinstance allocated withmemCalloc.static AIBone.Buffercalloc(int capacity) Returns a newAIBone.Bufferinstance allocated withmemCalloc.static AIBone.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIBone.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIBonecalloc(MemoryStack stack) Returns a newAIBoneinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIBoneDeprecated.static AIBone.BuffercallocStack(int capacity) Deprecated.static AIBone.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static AIBonecallocStack(MemoryStack stack) Deprecated.static AIBonecreate()Returns a newAIBoneinstance allocated withBufferUtils.static AIBone.Buffercreate(int capacity) Returns a newAIBone.Bufferinstance allocated withBufferUtils.static AIBonecreate(long address) Returns a newAIBoneinstance for the specified memory address.static AIBone.Buffercreate(long address, int capacity) Create aAIBone.Bufferinstance at the specified memory.static @Nullable AIBonecreateSafe(long address) static @Nullable AIBone.BuffercreateSafe(long address, int capacity) static AIBonemalloc()Returns a newAIBoneinstance allocated withmemAlloc.static AIBone.Buffermalloc(int capacity) Returns a newAIBone.Bufferinstance allocated withmemAlloc.static AIBone.Buffermalloc(int capacity, MemoryStack stack) Returns a newAIBone.Bufferinstance allocated on the specifiedMemoryStack.static AIBonemalloc(MemoryStack stack) Returns a newAIBoneinstance allocated on the specifiedMemoryStack.static AIBoneDeprecated.static AIBone.BuffermallocStack(int capacity) Deprecated.static AIBone.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static AIBonemallocStack(MemoryStack stack) Deprecated.Sets the address of the specifiedAINodeto themArmaturefield.mName()Passes themNamefield to the specifiedConsumer.Copies the specifiedAIStringto themNamefield.mNode()Sets the address of the specifiedAINodeto themNodefield.intmOffsetMatrix(Consumer<AIMatrix4x4> consumer) Passes themOffsetMatrixfield to the specifiedConsumer.mOffsetMatrix(AIMatrix4x4 value) Copies the specifiedAIMatrix4x4to themOffsetMatrixfield.mWeights()mWeights(AIVertexWeight.Buffer value) Sets the address of the specifiedAIVertexWeight.Bufferto themWeightsfield.static AINodenmArmature(long struct) Unsafe version ofmArmature().static voidnmArmature(long struct, AINode value) Unsafe version ofmArmature.static AIStringnmName(long struct) Unsafe version ofmName().static voidUnsafe version ofmName.static AINodenmNode(long struct) Unsafe version ofmNode().static voidUnsafe version ofmNode.static intnmNumWeights(long struct) Unsafe version ofmNumWeights().static voidnmNumWeights(long struct, int value) Sets the specified value to themNumWeightsfield of the specifiedstruct.static AIMatrix4x4nmOffsetMatrix(long struct) Unsafe version ofmOffsetMatrix().static voidnmOffsetMatrix(long struct, AIMatrix4x4 value) Unsafe version ofmOffsetMatrix.static AIVertexWeight.BuffernmWeights(long struct) Unsafe version ofmWeights().static voidnmWeights(long struct, AIVertexWeight.Buffer value) Unsafe version ofmWeights.Copies the specified struct data to this struct.set(AIString mName, AINode mArmature, AINode mNode, AIVertexWeight.Buffer mWeights, AIMatrix4x4 mOffsetMatrix) 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. -
MNAME
public static final int MNAMEThe struct member offsets. -
MNUMWEIGHTS
public static final int MNUMWEIGHTSThe struct member offsets. -
MARMATURE
public static final int MARMATUREThe struct member offsets. -
MNODE
public static final int MNODEThe struct member offsets. -
MWEIGHTS
public static final int MWEIGHTSThe struct member offsets. -
MOFFSETMATRIX
public static final int MOFFSETMATRIXThe struct member offsets.
-
-
Constructor Details
-
AIBone
Creates aAIBoneinstance 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). -
mName
- Returns:
- a
AIStringview of themNamefield.
-
mNumWeights
public int mNumWeights()- Returns:
- the value of the
mNumWeightsfield.
-
mArmature
- Returns:
- a
AINodeview of the struct pointed to by themArmaturefield.
-
mNode
- Returns:
- a
AINodeview of the struct pointed to by themNodefield.
-
mWeights
- Returns:
- a
AIVertexWeight.Bufferview of the struct array pointed to by themWeightsfield.
-
mOffsetMatrix
- Returns:
- a
AIMatrix4x4view of themOffsetMatrixfield.
-
mName
Copies the specifiedAIStringto themNamefield. -
mName
Passes themNamefield to the specifiedConsumer. -
mArmature
Sets the address of the specifiedAINodeto themArmaturefield. -
mNode
Sets the address of the specifiedAINodeto themNodefield. -
mWeights
Sets the address of the specifiedAIVertexWeight.Bufferto themWeightsfield. -
mOffsetMatrix
Copies the specifiedAIMatrix4x4to themOffsetMatrixfield. -
mOffsetMatrix
Passes themOffsetMatrixfield to the specifiedConsumer. -
set
public AIBone set(AIString mName, AINode mArmature, AINode mNode, AIVertexWeight.Buffer mWeights, AIMatrix4x4 mOffsetMatrix) 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 newAIBoneinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIBoneinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIBoneinstance allocated withBufferUtils. -
create
Returns a newAIBoneinstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIBone.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIBone.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIBone.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIBone.Bufferinstance 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 newAIBoneinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIBoneinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIBone.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIBone.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmName
Unsafe version ofmName(). -
nmNumWeights
public static int nmNumWeights(long struct) Unsafe version ofmNumWeights(). -
nmArmature
Unsafe version ofmArmature(). -
nmNode
Unsafe version ofmNode(). -
nmWeights
Unsafe version ofmWeights(). -
nmOffsetMatrix
Unsafe version ofmOffsetMatrix(). -
nmName
Unsafe version ofmName. -
nmNumWeights
public static void nmNumWeights(long struct, int value) Sets the specified value to themNumWeightsfield of the specifiedstruct. -
nmArmature
Unsafe version ofmArmature. -
nmNode
Unsafe version ofmNode. -
nmWeights
Unsafe version ofmWeights. -
nmOffsetMatrix
Unsafe version ofmOffsetMatrix. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-