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
-
-
-
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
-
mName
public AIString mName()
- Returns:
- a
AIStringview of theAIAnimMesh.mName()field.
-
mVertices
@Nullable public AIVector3D.Buffer mVertices()
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by theAIAnimMesh.mVertices()field.
-
mNormals
@Nullable public AIVector3D.Buffer mNormals()
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by theAIAnimMesh.mNormals()field.
-
mTangents
@Nullable public AIVector3D.Buffer mTangents()
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by theAIAnimMesh.mTangents()field.
-
mBitangents
@Nullable public AIVector3D.Buffer mBitangents()
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by theAIAnimMesh.mBitangents()field.
-
mColors
public org.lwjgl.PointerBuffer mColors()
- Returns:
- a
PointerBufferview of theAIAnimMesh.mColors()field.
-
mColors
@Nullable public AIColor4D.Buffer mColors(int index)
- Returns:
- a
AIColor4Dview of the pointer at the specified index of theAIAnimMesh.mColors()field.
-
mTextureCoords
public org.lwjgl.PointerBuffer mTextureCoords()
- Returns:
- a
PointerBufferview of theAIAnimMesh.mTextureCoords()field.
-
mTextureCoords
@Nullable public AIVector3D.Buffer mTextureCoords(int index)
- Returns:
- a
AIVector3Dview of the pointer at the specified index of theAIAnimMesh.mTextureCoords()field.
-
mNumVertices
public int mNumVertices()
- Returns:
- the value of the
AIAnimMesh.mNumVertices()field.
-
mWeight
public float mWeight()
- Returns:
- the value of the
AIAnimMesh.mWeight()field.
-
mName
public AIAnimMesh.Buffer mName(AIString value)
Copies the specifiedAIStringto theAIAnimMesh.mName()field.
-
mName
public AIAnimMesh.Buffer mName(java.util.function.Consumer<AIString> consumer)
Passes theAIAnimMesh.mName()field to the specifiedConsumer.
-
mVertices
public AIAnimMesh.Buffer mVertices(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto theAIAnimMesh.mVertices()field.
-
mNormals
public AIAnimMesh.Buffer mNormals(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto theAIAnimMesh.mNormals()field.
-
mTangents
public AIAnimMesh.Buffer mTangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto theAIAnimMesh.mTangents()field.
-
mBitangents
public AIAnimMesh.Buffer mBitangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto theAIAnimMesh.mBitangents()field.
-
mColors
public AIAnimMesh.Buffer mColors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto theAIAnimMesh.mColors()field.
-
mColors
public AIAnimMesh.Buffer mColors(int index, @Nullable AIColor4D.Buffer value)
Copies the address of the specifiedAIColor4D.Bufferat the specified index of theAIAnimMesh.mColors()field.
-
mColors
public AIAnimMesh.Buffer mColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)
-
mTextureCoords
public AIAnimMesh.Buffer mTextureCoords(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto theAIAnimMesh.mTextureCoords()field.
-
mTextureCoords
public AIAnimMesh.Buffer mTextureCoords(int index, @Nullable AIVector3D.Buffer value)
Copies the address of the specifiedAIVector3D.Bufferat the specified index of theAIAnimMesh.mTextureCoords()field.
-
mTextureCoords
public AIAnimMesh.Buffer mTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)
-
mNumVertices
public AIAnimMesh.Buffer mNumVertices(int value)
Sets the specified value to theAIAnimMesh.mNumVertices()field.
-
mWeight
public AIAnimMesh.Buffer mWeight(float value)
Sets the specified value to theAIAnimMesh.mWeight()field.
-
-