Package org.lwjgl.assimp
Class AINode.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<AINode,AINode.Buffer>
-
- org.lwjgl.assimp.AINode.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,java.lang.Iterable<AINode>
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
- Enclosing class:
- AINode
public static class AINode.Buffer extends org.lwjgl.system.StructBuffer<AINode,AINode.Buffer> implements org.lwjgl.system.NativeResource
An array ofAINode
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.lwjgl.PointerBuffer
mChildren()
AINode.Buffer
mChildren(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to theAINode.mChildren()
field.java.nio.IntBuffer
mMeshes()
AINode.Buffer
mMeshes(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to theAINode.mMeshes()
field.AIMetaData
mMetadata()
AINode.Buffer
mMetadata(AIMetaData value)
Sets the address of the specifiedAIMetaData
to theAINode.mMetadata()
field.AIString
mName()
AINode.Buffer
mName(java.util.function.Consumer<AIString> consumer)
Passes theAINode.mName()
field to the specifiedConsumer
.AINode.Buffer
mName(AIString value)
Copies the specifiedAIString
to theAINode.mName()
field.int
mNumChildren()
int
mNumMeshes()
AINode
mParent()
AINode.Buffer
mParent(AINode value)
Sets the address of the specifiedAINode
to theAINode.mParent()
field.AIMatrix4x4
mTransformation()
AINode.Buffer
mTransformation(java.util.function.Consumer<AIMatrix4x4> consumer)
Passes theAINode.mTransformation()
field to the specifiedConsumer
.AINode.Buffer
mTransformation(AIMatrix4x4 value)
Copies the specifiedAIMatrix4x4
to theAINode.mTransformation()
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newAINode.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 byAINode.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 theAINode.mName()
field.
-
mTransformation
public AIMatrix4x4 mTransformation()
- Returns:
- a
AIMatrix4x4
view of theAINode.mTransformation()
field.
-
mParent
@Nullable public AINode mParent()
- Returns:
- a
AINode
view of the struct pointed to by theAINode.mParent()
field.
-
mNumChildren
public int mNumChildren()
- Returns:
- the value of the
AINode.mNumChildren()
field.
-
mChildren
@Nullable public org.lwjgl.PointerBuffer mChildren()
- Returns:
- a
PointerBuffer
view of the data pointed to by theAINode.mChildren()
field.
-
mNumMeshes
public int mNumMeshes()
- Returns:
- the value of the
AINode.mNumMeshes()
field.
-
mMeshes
@Nullable public java.nio.IntBuffer mMeshes()
- Returns:
- a
IntBuffer
view of the data pointed to by theAINode.mMeshes()
field.
-
mMetadata
@Nullable public AIMetaData mMetadata()
- Returns:
- a
AIMetaData
view of the struct pointed to by theAINode.mMetadata()
field.
-
mName
public AINode.Buffer mName(AIString value)
Copies the specifiedAIString
to theAINode.mName()
field.
-
mName
public AINode.Buffer mName(java.util.function.Consumer<AIString> consumer)
Passes theAINode.mName()
field to the specifiedConsumer
.
-
mTransformation
public AINode.Buffer mTransformation(AIMatrix4x4 value)
Copies the specifiedAIMatrix4x4
to theAINode.mTransformation()
field.
-
mTransformation
public AINode.Buffer mTransformation(java.util.function.Consumer<AIMatrix4x4> consumer)
Passes theAINode.mTransformation()
field to the specifiedConsumer
.
-
mParent
public AINode.Buffer mParent(@Nullable AINode value)
Sets the address of the specifiedAINode
to theAINode.mParent()
field.
-
mChildren
public AINode.Buffer mChildren(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to theAINode.mChildren()
field.
-
mMeshes
public AINode.Buffer mMeshes(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to theAINode.mMeshes()
field.
-
mMetadata
public AINode.Buffer mMetadata(@Nullable AIMetaData value)
Sets the address of the specifiedAIMetaData
to theAINode.mMetadata()
field.
-
-