Package org.lwjgl.assimp
Class AIMesh.Buffer
- All Implemented Interfaces:
AutoCloseable,Iterable<AIMesh>,NativeResource,Pointer
- Enclosing class:
AIMesh
public static class AIMesh.Buffer
extends StructBuffer<AIMesh,AIMesh.Buffer>
implements NativeResource
An array of
AIMesh 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 newAIMesh.Bufferinstance backed by the specified container. -
Method Summary
Modifier and TypeMethodDescriptionmAABB()Passes themAABBfield to the specifiedConsumer.Copies the specifiedAIAABBto themAABBfield.@Nullable PointerBuffermAnimMeshes(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themAnimMeshesfield.@Nullable AIVector3D.BuffermBitangents(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Bufferto themBitangentsfield.@Nullable PointerBuffermBones()mBones(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themBonesfield.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.mFaces()mFaces(AIFace.Buffer value) Sets the address of the specifiedAIFace.Bufferto themFacesfield.intmMaterialIndex(int value) Sets the specified value to themMaterialIndexfield.intmMethod()mMethod(int value) Sets the specified value to themMethodfield.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.intintintintmNumUVComponents(int index) mNumUVComponents(int index, int value) Sets the specified value at the specified index of themNumUVComponentsfield.mNumUVComponents(IntBuffer value) Copies the specifiedIntBufferto themNumUVComponentsfield.intmNumVertices(int value) Sets the specified value to themNumVerticesfield.intmPrimitiveTypes(int value) Sets the specified value to themPrimitiveTypesfield.@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 PointerBuffermTextureCoordsNames(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themTextureCoordsNamesfield.mVertices(AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Bufferto themVerticesfield.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 newAIMesh.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
AIMesh.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
-
mPrimitiveTypes
public int mPrimitiveTypes()- Returns:
- the value of the
mPrimitiveTypesfield.
-
mNumVertices
public int mNumVertices()- Returns:
- the value of the
mNumVerticesfield.
-
mNumFaces
public int mNumFaces()- Returns:
- the value of the
mNumFacesfield.
-
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.
-
mNumUVComponents
- Returns:
- a
IntBufferview of themNumUVComponentsfield.
-
mNumUVComponents
public int mNumUVComponents(int index) - Returns:
- the value at the specified index of the
mNumUVComponentsfield.
-
mFaces
- Returns:
- a
AIFace.Bufferview of the struct array pointed to by themFacesfield.
-
mNumBones
public int mNumBones()- Returns:
- the value of the
mNumBonesfield.
-
mBones
- Returns:
- a
PointerBufferview of the data pointed to by themBonesfield.
-
mMaterialIndex
public int mMaterialIndex()- Returns:
- the value of the
mMaterialIndexfield.
-
mName
- Returns:
- a
AIStringview of themNamefield.
-
mNumAnimMeshes
public int mNumAnimMeshes()- Returns:
- the value of the
mNumAnimMeshesfield.
-
mAnimMeshes
- Returns:
- a
PointerBufferview of the data pointed to by themAnimMeshesfield.
-
mMethod
public int mMethod()- Returns:
- the value of the
mMethodfield.
-
mAABB
- Returns:
- a
AIAABBview of themAABBfield.
-
mTextureCoordsNames
- Returns:
- a
PointerBufferview of the data pointed to by themTextureCoordsNamesfield.
-
mPrimitiveTypes
Sets the specified value to themPrimitiveTypesfield. -
mNumVertices
Sets the specified value to themNumVerticesfield. -
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
-
mNumUVComponents
Copies the specifiedIntBufferto themNumUVComponentsfield. -
mNumUVComponents
Sets the specified value at the specified index of themNumUVComponentsfield. -
mFaces
Sets the address of the specifiedAIFace.Bufferto themFacesfield. -
mBones
Sets the address of the specifiedPointerBufferto themBonesfield. -
mMaterialIndex
Sets the specified value to themMaterialIndexfield. -
mName
Copies the specifiedAIStringto themNamefield. -
mName
Passes themNamefield to the specifiedConsumer. -
mAnimMeshes
Sets the address of the specifiedPointerBufferto themAnimMeshesfield. -
mMethod
Sets the specified value to themMethodfield. -
mAABB
Copies the specifiedAIAABBto themAABBfield. -
mAABB
Passes themAABBfield to the specifiedConsumer. -
mTextureCoordsNames
Sets the address of the specifiedPointerBufferto themTextureCoordsNamesfield.
-