Package org.lwjgl.assimp
Class AIAnimMesh.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<AIAnimMesh>,NativeResource,Pointer
- Enclosing class:
AIAnimMesh
public static class AIAnimMesh.Buffer
extends StructBuffer<AIAnimMesh,AIAnimMesh.Buffer>
implements NativeResource
An array of
AIAnimMesh structs.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBuffer(long address, int cap) Buffer(ByteBuffer container) Creates a newAIAnimMesh.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescription@Nullable AIVector3D.BuffermBitangents(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Bufferto themBitangentsfield.mColors()@Nullable AIColor4D.BuffermColors(int index) mColors(int index, Consumer<@Nullable AIColor4D.Buffer> consumer) mColors(int index, @Nullable AIColor4D.Buffer value) Copies the address of the specifiedAIColor4D.Bufferat the specified index of themColorsfield.mColors(PointerBuffer value) Copies the specifiedPointerBufferto themColorsfield.mName()Passes themNamefield to the specifiedConsumer.Copies the specifiedAIStringto themNamefield.@Nullable AIVector3D.BuffermNormals()mNormals(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Bufferto themNormalsfield.intmNumVertices(int value) Sets the specified value to themNumVerticesfield.@Nullable AIVector3D.BuffermTangents(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Bufferto themTangentsfield.@Nullable AIVector3D.BuffermTextureCoords(int index) mTextureCoords(int index, Consumer<@Nullable AIVector3D.Buffer> consumer) mTextureCoords(int index, @Nullable AIVector3D.Buffer value) Copies the address of the specifiedAIVector3D.Bufferat the specified index of themTextureCoordsfield.mTextureCoords(PointerBuffer value) Copies the specifiedPointerBufferto themTextureCoordsfield.@Nullable AIVector3D.BuffermVertices(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Bufferto themVerticesfield.floatmWeight()mWeight(float value) Sets the specified value to themWeightfield.Methods inherited from class org.lwjgl.system.StructBuffer
apply, apply, forEach, get, get, get, get, iterator, parallelStream, put, put, sizeof, spliterator, streamMethods inherited from class org.lwjgl.system.CustomBuffer
address, address, address0, capacity, clear, compact, duplicate, flip, free, hasRemaining, limit, limit, mark, position, position, put, remaining, reset, rewind, slice, slice, toStringMethods inherited from class org.lwjgl.system.Pointer.Default
equals, hashCodeMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
Buffer
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 by
AIAnimMesh.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 Details
-
mName
- Returns:
- a
AIStringview of themNamefield.
-
mVertices
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by themVerticesfield.
-
mNormals
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by themNormalsfield.
-
mTangents
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by themTangentsfield.
-
mBitangents
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by themBitangentsfield.
-
mColors
- Returns:
- a
PointerBufferview of themColorsfield.
-
mColors
- Returns:
- a
AIColor4Dview of the pointer at the specified index of themColorsfield.
-
mTextureCoords
- Returns:
- a
PointerBufferview of themTextureCoordsfield.
-
mTextureCoords
- Returns:
- a
AIVector3Dview of the pointer at the specified index of themTextureCoordsfield.
-
mNumVertices
public int mNumVertices()- Returns:
- the value of the
mNumVerticesfield.
-
mWeight
public float mWeight()- Returns:
- the value of the
mWeightfield.
-
mName
Copies the specifiedAIStringto themNamefield. -
mName
Passes themNamefield to the specifiedConsumer. -
mVertices
Sets the address of the specifiedAIVector3D.Bufferto themVerticesfield. -
mNormals
Sets the address of the specifiedAIVector3D.Bufferto themNormalsfield. -
mTangents
Sets the address of the specifiedAIVector3D.Bufferto themTangentsfield. -
mBitangents
Sets the address of the specifiedAIVector3D.Bufferto themBitangentsfield. -
mColors
Copies the specifiedPointerBufferto themColorsfield. -
mColors
Copies the address of the specifiedAIColor4D.Bufferat the specified index of themColorsfield. -
mColors
-
mTextureCoords
Copies the specifiedPointerBufferto themTextureCoordsfield. -
mTextureCoords
Copies the address of the specifiedAIVector3D.Bufferat the specified index of themTextureCoordsfield. -
mTextureCoords
-
mNumVertices
Sets the specified value to themNumVerticesfield. -
mWeight
Sets the specified value to themWeightfield.
-