Package org.lwjgl.assimp
Class AIAnimMesh.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<AIAnimMesh,AIAnimMesh.Buffer>
-
- org.lwjgl.assimp.AIAnimMesh.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<AIAnimMesh>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- AIAnimMesh
public static class AIAnimMesh.Buffer extends org.lwjgl.system.StructBuffer<AIAnimMesh,AIAnimMesh.Buffer> implements org.lwjgl.system.NativeResource
An array ofAIAnimMeshstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AIVector3D.BuffermBitangents()Returns aAIVector3D.Bufferview of the struct array pointed to by themBitangentsfield.AIAnimMesh.BuffermBitangents(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themBitangentsfield.org.lwjgl.PointerBuffermColors()Returns aPointerBufferview of themColorsfield.AIColor4D.BuffermColors(int index)Returns aAIColor4Dview of the pointer at the specified index of themColorsfield.AIAnimMesh.BuffermColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)Passes the element atindexof themColorsfield to the specifiedConsumer.AIAnimMesh.BuffermColors(int index, AIColor4D.Buffer value)Copies the address of the specifiedAIColor4Dat the specified index of themColorsfield.AIAnimMesh.BuffermColors(org.lwjgl.PointerBuffer value)Copies the specifiedPointerBufferto themColorsfield.AIStringmName()Returns aAIStringview of themNamefield.AIAnimMesh.BuffermName(java.util.function.Consumer<AIString> consumer)Passes themNamefield to the specifiedConsumer.AIAnimMesh.BuffermName(AIString value)Copies the specifiedAIStringto themNamefield.AIVector3D.BuffermNormals()Returns aAIVector3D.Bufferview of the struct array pointed to by themNormalsfield.AIAnimMesh.BuffermNormals(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themNormalsfield.intmNumVertices()Returns the value of themNumVerticesfield.AIAnimMesh.BuffermNumVertices(int value)Sets the specified value to themNumVerticesfield.AIVector3D.BuffermTangents()Returns aAIVector3D.Bufferview of the struct array pointed to by themTangentsfield.AIAnimMesh.BuffermTangents(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themTangentsfield.org.lwjgl.PointerBuffermTextureCoords()Returns aPointerBufferview of themTextureCoordsfield.AIVector3D.BuffermTextureCoords(int index)Returns aAIVector3Dview of the pointer at the specified index of themTextureCoordsfield.AIAnimMesh.BuffermTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)Passes the element atindexof themTextureCoordsfield to the specifiedConsumer.AIAnimMesh.BuffermTextureCoords(int index, AIVector3D.Buffer value)Copies the address of the specifiedAIVector3Dat the specified index of themTextureCoordsfield.AIAnimMesh.BuffermTextureCoords(org.lwjgl.PointerBuffer value)Copies the specifiedPointerBufferto themTextureCoordsfield.AIVector3D.BuffermVertices()Returns aAIVector3D.Bufferview of the struct array pointed to by themVerticesfield.AIAnimMesh.BuffermVertices(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themVerticesfield.floatmWeight()Returns the value of themWeightfield.AIAnimMesh.BuffermWeight(float value)Sets the specified value to themWeightfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newAIAnimMesh.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 byAIAnimMesh.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
-
mVertices
@Nullable public AIVector3D.Buffer mVertices()
Returns aAIVector3D.Bufferview of the struct array pointed to by themVerticesfield.
-
mNormals
@Nullable public AIVector3D.Buffer mNormals()
Returns aAIVector3D.Bufferview of the struct array pointed to by themNormalsfield.
-
mTangents
@Nullable public AIVector3D.Buffer mTangents()
Returns aAIVector3D.Bufferview of the struct array pointed to by themTangentsfield.
-
mBitangents
@Nullable public AIVector3D.Buffer mBitangents()
Returns aAIVector3D.Bufferview of the struct array pointed to by themBitangentsfield.
-
mColors
public org.lwjgl.PointerBuffer mColors()
Returns aPointerBufferview of themColorsfield.
-
mColors
@Nullable public AIColor4D.Buffer mColors(int index)
Returns aAIColor4Dview of the pointer at the specified index of themColorsfield.
-
mTextureCoords
public org.lwjgl.PointerBuffer mTextureCoords()
Returns aPointerBufferview of themTextureCoordsfield.
-
mTextureCoords
@Nullable public AIVector3D.Buffer mTextureCoords(int index)
Returns aAIVector3Dview of the pointer at the specified index of themTextureCoordsfield.
-
mNumVertices
public int mNumVertices()
Returns the value of themNumVerticesfield.
-
mWeight
public float mWeight()
Returns the value of themWeightfield.
-
mName
public AIAnimMesh.Buffer mName(AIString value)
Copies the specifiedAIStringto themNamefield.
-
mName
public AIAnimMesh.Buffer mName(java.util.function.Consumer<AIString> consumer)
Passes themNamefield to the specifiedConsumer.
-
mVertices
public AIAnimMesh.Buffer mVertices(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themVerticesfield.
-
mNormals
public AIAnimMesh.Buffer mNormals(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themNormalsfield.
-
mTangents
public AIAnimMesh.Buffer mTangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themTangentsfield.
-
mBitangents
public AIAnimMesh.Buffer mBitangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themBitangentsfield.
-
mColors
public AIAnimMesh.Buffer mColors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto themColorsfield.
-
mColors
public AIAnimMesh.Buffer mColors(int index, @Nullable AIColor4D.Buffer value)
Copies the address of the specifiedAIColor4Dat the specified index of themColorsfield.
-
mColors
public AIAnimMesh.Buffer mColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)
Passes the element atindexof themColorsfield to the specifiedConsumer.
-
mTextureCoords
public AIAnimMesh.Buffer mTextureCoords(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto themTextureCoordsfield.
-
mTextureCoords
public AIAnimMesh.Buffer mTextureCoords(int index, @Nullable AIVector3D.Buffer value)
Copies the address of the specifiedAIVector3Dat the specified index of themTextureCoordsfield.
-
mTextureCoords
public AIAnimMesh.Buffer mTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)
Passes the element atindexof themTextureCoordsfield to the specifiedConsumer.
-
mNumVertices
public AIAnimMesh.Buffer mNumVertices(int value)
Sets the specified value to themNumVerticesfield.
-
mWeight
public AIAnimMesh.Buffer mWeight(float value)
Sets the specified value to themWeightfield.
-
-