Package org.lwjgl.assimp
Class AIBone.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<AIBone,AIBone.Buffer>
-
- org.lwjgl.assimp.AIBone.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<AIBone>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- AIBone
public static class AIBone.Buffer extends org.lwjgl.system.StructBuffer<AIBone,AIBone.Buffer> implements org.lwjgl.system.NativeResource
An array ofAIBonestructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AINodemArmature()AIBone.BuffermArmature(AINode value)Sets the address of the specifiedAINodeto theAIBone.mArmature()field.AIStringmName()AIBone.BuffermName(java.util.function.Consumer<AIString> consumer)Passes theAIBone.mName()field to the specifiedConsumer.AIBone.BuffermName(AIString value)Copies the specifiedAIStringto theAIBone.mName()field.AINodemNode()AIBone.BuffermNode(AINode value)Sets the address of the specifiedAINodeto theAIBone.mNode()field.intmNumWeights()AIMatrix4x4mOffsetMatrix()AIBone.BuffermOffsetMatrix(java.util.function.Consumer<AIMatrix4x4> consumer)Passes theAIBone.mOffsetMatrix()field to the specifiedConsumer.AIBone.BuffermOffsetMatrix(AIMatrix4x4 value)Copies the specifiedAIMatrix4x4to theAIBone.mOffsetMatrix()field.AIVertexWeight.BuffermWeights()AIBone.BuffermWeights(AIVertexWeight.Buffer value)Sets the address of the specifiedAIVertexWeight.Bufferto theAIBone.mWeights()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newAIBone.Bufferinstance backed by the specified container. Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided byAIBone.SIZEOF, and its mark will be undefined.The created buffer instance holds a strong reference to the container object.
-
Buffer
public Buffer(long address, int cap)
-
-
Method Detail
-
mName
public AIString mName()
- Returns:
- a
AIStringview of theAIBone.mName()field.
-
mNumWeights
public int mNumWeights()
- Returns:
- the value of the
AIBone.mNumWeights()field.
-
mArmature
public AINode mArmature()
- Returns:
- a
AINodeview of the struct pointed to by theAIBone.mArmature()field.
-
mNode
public AINode mNode()
- Returns:
- a
AINodeview of the struct pointed to by theAIBone.mNode()field.
-
mWeights
public AIVertexWeight.Buffer mWeights()
- Returns:
- a
AIVertexWeight.Bufferview of the struct array pointed to by theAIBone.mWeights()field.
-
mOffsetMatrix
public AIMatrix4x4 mOffsetMatrix()
- Returns:
- a
AIMatrix4x4view of theAIBone.mOffsetMatrix()field.
-
mName
public AIBone.Buffer mName(AIString value)
Copies the specifiedAIStringto theAIBone.mName()field.
-
mName
public AIBone.Buffer mName(java.util.function.Consumer<AIString> consumer)
Passes theAIBone.mName()field to the specifiedConsumer.
-
mArmature
public AIBone.Buffer mArmature(AINode value)
Sets the address of the specifiedAINodeto theAIBone.mArmature()field.
-
mNode
public AIBone.Buffer mNode(AINode value)
Sets the address of the specifiedAINodeto theAIBone.mNode()field.
-
mWeights
public AIBone.Buffer mWeights(AIVertexWeight.Buffer value)
Sets the address of the specifiedAIVertexWeight.Bufferto theAIBone.mWeights()field.
-
mOffsetMatrix
public AIBone.Buffer mOffsetMatrix(AIMatrix4x4 value)
Copies the specifiedAIMatrix4x4to theAIBone.mOffsetMatrix()field.
-
mOffsetMatrix
public AIBone.Buffer mOffsetMatrix(java.util.function.Consumer<AIMatrix4x4> consumer)
Passes theAIBone.mOffsetMatrix()field to the specifiedConsumer.
-
-