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 ofAIBone
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AINode
mArmature()
AIBone.Buffer
mArmature(AINode value)
Sets the address of the specifiedAINode
to theAIBone.mArmature()
field.AIString
mName()
AIBone.Buffer
mName(java.util.function.Consumer<AIString> consumer)
Passes theAIBone.mName()
field to the specifiedConsumer
.AIBone.Buffer
mName(AIString value)
Copies the specifiedAIString
to theAIBone.mName()
field.AINode
mNode()
AIBone.Buffer
mNode(AINode value)
Sets the address of the specifiedAINode
to theAIBone.mNode()
field.int
mNumWeights()
AIMatrix4x4
mOffsetMatrix()
AIBone.Buffer
mOffsetMatrix(java.util.function.Consumer<AIMatrix4x4> consumer)
Passes theAIBone.mOffsetMatrix()
field to the specifiedConsumer
.AIBone.Buffer
mOffsetMatrix(AIMatrix4x4 value)
Copies the specifiedAIMatrix4x4
to theAIBone.mOffsetMatrix()
field.AIVertexWeight.Buffer
mWeights()
AIBone.Buffer
mWeights(AIVertexWeight.Buffer value)
Sets the address of the specifiedAIVertexWeight.Buffer
to theAIBone.mWeights()
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newAIBone.Buffer
instance 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
AIString
view of theAIBone.mName()
field.
-
mNumWeights
public int mNumWeights()
- Returns:
- the value of the
AIBone.mNumWeights()
field.
-
mArmature
public AINode mArmature()
- Returns:
- a
AINode
view of the struct pointed to by theAIBone.mArmature()
field.
-
mNode
public AINode mNode()
- Returns:
- a
AINode
view of the struct pointed to by theAIBone.mNode()
field.
-
mWeights
public AIVertexWeight.Buffer mWeights()
- Returns:
- a
AIVertexWeight.Buffer
view of the struct array pointed to by theAIBone.mWeights()
field.
-
mOffsetMatrix
public AIMatrix4x4 mOffsetMatrix()
- Returns:
- a
AIMatrix4x4
view of theAIBone.mOffsetMatrix()
field.
-
mName
public AIBone.Buffer mName(AIString value)
Copies the specifiedAIString
to 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 specifiedAINode
to theAIBone.mArmature()
field.
-
mNode
public AIBone.Buffer mNode(AINode value)
Sets the address of the specifiedAINode
to theAIBone.mNode()
field.
-
mWeights
public AIBone.Buffer mWeights(AIVertexWeight.Buffer value)
Sets the address of the specifiedAIVertexWeight.Buffer
to theAIBone.mWeights()
field.
-
mOffsetMatrix
public AIBone.Buffer mOffsetMatrix(AIMatrix4x4 value)
Copies the specifiedAIMatrix4x4
to theAIBone.mOffsetMatrix()
field.
-
mOffsetMatrix
public AIBone.Buffer mOffsetMatrix(java.util.function.Consumer<AIMatrix4x4> consumer)
Passes theAIBone.mOffsetMatrix()
field to the specifiedConsumer
.
-
-