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 ofAINodestructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.lwjgl.PointerBuffermChildren()AINode.BuffermChildren(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto theAINode.mChildren()field.java.nio.IntBuffermMeshes()AINode.BuffermMeshes(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto theAINode.mMeshes()field.AIMetaDatamMetadata()AINode.BuffermMetadata(AIMetaData value)Sets the address of the specifiedAIMetaDatato theAINode.mMetadata()field.AIStringmName()AINode.BuffermName(java.util.function.Consumer<AIString> consumer)Passes theAINode.mName()field to the specifiedConsumer.AINode.BuffermName(AIString value)Copies the specifiedAIStringto theAINode.mName()field.intmNumChildren()intmNumMeshes()AINodemParent()AINode.BuffermParent(AINode value)Sets the address of the specifiedAINodeto theAINode.mParent()field.AIMatrix4x4mTransformation()AINode.BuffermTransformation(java.util.function.Consumer<AIMatrix4x4> consumer)Passes theAINode.mTransformation()field to the specifiedConsumer.AINode.BuffermTransformation(AIMatrix4x4 value)Copies the specifiedAIMatrix4x4to theAINode.mTransformation()field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newAINode.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 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
AIStringview of theAINode.mName()field.
-
mTransformation
public AIMatrix4x4 mTransformation()
- Returns:
- a
AIMatrix4x4view of theAINode.mTransformation()field.
-
mParent
@Nullable public AINode mParent()
- Returns:
- a
AINodeview 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
PointerBufferview 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
IntBufferview of the data pointed to by theAINode.mMeshes()field.
-
mMetadata
@Nullable public AIMetaData mMetadata()
- Returns:
- a
AIMetaDataview of the struct pointed to by theAINode.mMetadata()field.
-
mName
public AINode.Buffer mName(AIString value)
Copies the specifiedAIStringto 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 specifiedAIMatrix4x4to 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 specifiedAINodeto theAINode.mParent()field.
-
mChildren
public AINode.Buffer mChildren(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto theAINode.mChildren()field.
-
mMeshes
public AINode.Buffer mMeshes(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto theAINode.mMeshes()field.
-
mMetadata
public AINode.Buffer mMetadata(@Nullable AIMetaData value)
Sets the address of the specifiedAIMetaDatato theAINode.mMetadata()field.
-
-