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 AIString
mName()
Returns aAIString
view of themName
field.AIBone.Buffer
mName(java.util.function.Consumer<AIString> consumer)
Passes themName
field to the specifiedConsumer
.AIBone.Buffer
mName(AIString value)
Copies the specifiedAIString
to themName
field.int
mNumWeights()
Returns the value of themNumWeights
field.AIMatrix4x4
mOffsetMatrix()
Returns aAIMatrix4x4
view of themOffsetMatrix
field.AIBone.Buffer
mOffsetMatrix(java.util.function.Consumer<AIMatrix4x4> consumer)
Passes themOffsetMatrix
field to the specifiedConsumer
.AIBone.Buffer
mOffsetMatrix(AIMatrix4x4 value)
Copies the specifiedAIMatrix4x4
to themOffsetMatrix
field.AIVertexWeight.Buffer
mWeights()
Returns aAIVertexWeight.Buffer
view of the struct array pointed to by themWeights
field.AIBone.Buffer
mWeights(AIVertexWeight.Buffer value)
Sets the address of the specifiedAIVertexWeight.Buffer
to themWeights
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
-
mNumWeights
public int mNumWeights()
Returns the value of themNumWeights
field.
-
mWeights
public AIVertexWeight.Buffer mWeights()
Returns aAIVertexWeight.Buffer
view of the struct array pointed to by themWeights
field.
-
mOffsetMatrix
public AIMatrix4x4 mOffsetMatrix()
Returns aAIMatrix4x4
view of themOffsetMatrix
field.
-
mName
public AIBone.Buffer mName(AIString value)
Copies the specifiedAIString
to themName
field.
-
mName
public AIBone.Buffer mName(java.util.function.Consumer<AIString> consumer)
Passes themName
field to the specifiedConsumer
.
-
mWeights
public AIBone.Buffer mWeights(AIVertexWeight.Buffer value)
Sets the address of the specifiedAIVertexWeight.Buffer
to themWeights
field.
-
mOffsetMatrix
public AIBone.Buffer mOffsetMatrix(AIMatrix4x4 value)
Copies the specifiedAIMatrix4x4
to themOffsetMatrix
field.
-
mOffsetMatrix
public AIBone.Buffer mOffsetMatrix(java.util.function.Consumer<AIMatrix4x4> consumer)
Passes themOffsetMatrix
field to the specifiedConsumer
.
-
-