Package org.lwjgl.assimp
Class AIMesh.Buffer
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.CustomBuffer<SELF>
-
- org.lwjgl.system.StructBuffer<AIMesh,AIMesh.Buffer>
-
- org.lwjgl.assimp.AIMesh.Buffer
-
- All Implemented Interfaces:
java.lang.AutoCloseable,java.lang.Iterable<AIMesh>,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Enclosing class:
- AIMesh
public static class AIMesh.Buffer extends org.lwjgl.system.StructBuffer<AIMesh,AIMesh.Buffer> implements org.lwjgl.system.NativeResource
An array ofAIMeshstructs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AIAABBmAABB()Returns aAIAABBview of themAABBfield.AIMesh.BuffermAABB(java.util.function.Consumer<AIAABB> consumer)Passes themAABBfield to the specifiedConsumer.AIMesh.BuffermAABB(AIAABB value)Copies the specifiedAIAABBto themAABBfield.org.lwjgl.PointerBuffermAnimMeshes()Returns aPointerBufferview of the data pointed to by themAnimMeshesfield.AIMesh.BuffermAnimMeshes(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto themAnimMeshesfield.AIVector3D.BuffermBitangents()Returns aAIVector3D.Bufferview of the struct array pointed to by themBitangentsfield.AIMesh.BuffermBitangents(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themBitangentsfield.org.lwjgl.PointerBuffermBones()Returns aPointerBufferview of the data pointed to by themBonesfield.AIMesh.BuffermBones(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto themBonesfield.org.lwjgl.PointerBuffermColors()Returns aPointerBufferview of themColorsfield.AIColor4D.BuffermColors(int index)Returns aAIColor4Dview of the pointer at the specified index of themColorsfield.AIMesh.BuffermColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)Passes the element atindexof themColorsfield to the specifiedConsumer.AIMesh.BuffermColors(int index, AIColor4D.Buffer value)Copies the address of the specifiedAIColor4Dat the specified index of themColorsfield.AIMesh.BuffermColors(org.lwjgl.PointerBuffer value)Copies the specifiedPointerBufferto themColorsfield.AIFace.BuffermFaces()Returns aAIFace.Bufferview of the struct array pointed to by themFacesfield.AIMesh.BuffermFaces(AIFace.Buffer value)Sets the address of the specifiedAIFace.Bufferto themFacesfield.intmMaterialIndex()Returns the value of themMaterialIndexfield.AIMesh.BuffermMaterialIndex(int value)Sets the specified value to themMaterialIndexfield.intmMethod()Returns the value of themMethodfield.AIMesh.BuffermMethod(int value)Sets the specified value to themMethodfield.AIStringmName()Returns aAIStringview of themNamefield.AIMesh.BuffermName(java.util.function.Consumer<AIString> consumer)Passes themNamefield to the specifiedConsumer.AIMesh.BuffermName(AIString value)Copies the specifiedAIStringto themNamefield.AIVector3D.BuffermNormals()Returns aAIVector3D.Bufferview of the struct array pointed to by themNormalsfield.AIMesh.BuffermNormals(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themNormalsfield.intmNumAnimMeshes()Returns the value of themNumAnimMeshesfield.intmNumBones()Returns the value of themNumBonesfield.intmNumFaces()Returns the value of themNumFacesfield.java.nio.IntBuffermNumUVComponents()Returns aIntBufferview of themNumUVComponentsfield.intmNumUVComponents(int index)Returns the value at the specified index of themNumUVComponentsfield.AIMesh.BuffermNumUVComponents(int index, int value)Sets the specified value at the specified index of themNumUVComponentsfield.AIMesh.BuffermNumUVComponents(java.nio.IntBuffer value)Copies the specifiedIntBufferto themNumUVComponentsfield.intmNumVertices()Returns the value of themNumVerticesfield.AIMesh.BuffermNumVertices(int value)Sets the specified value to themNumVerticesfield.intmPrimitiveTypes()Returns the value of themPrimitiveTypesfield.AIMesh.BuffermPrimitiveTypes(int value)Sets the specified value to themPrimitiveTypesfield.AIVector3D.BuffermTangents()Returns aAIVector3D.Bufferview of the struct array pointed to by themTangentsfield.AIMesh.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.AIMesh.BuffermTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)Passes the element atindexof themTextureCoordsfield to the specifiedConsumer.AIMesh.BuffermTextureCoords(int index, AIVector3D.Buffer value)Copies the address of the specifiedAIVector3Dat the specified index of themTextureCoordsfield.AIMesh.BuffermTextureCoords(org.lwjgl.PointerBuffer value)Copies the specifiedPointerBufferto themTextureCoordsfield.AIVector3D.BuffermVertices()Returns aAIVector3D.Bufferview of the struct array pointed to by themVerticesfield.AIMesh.BuffermVertices(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themVerticesfield.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
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 byAIMesh.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
-
mPrimitiveTypes
public int mPrimitiveTypes()
Returns the value of themPrimitiveTypesfield.
-
mNumVertices
public int mNumVertices()
Returns the value of themNumVerticesfield.
-
mNumFaces
public int mNumFaces()
Returns the value of themNumFacesfield.
-
mVertices
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.
-
mNumUVComponents
public java.nio.IntBuffer mNumUVComponents()
Returns aIntBufferview of themNumUVComponentsfield.
-
mNumUVComponents
public int mNumUVComponents(int index)
Returns the value at the specified index of themNumUVComponentsfield.
-
mFaces
public AIFace.Buffer mFaces()
Returns aAIFace.Bufferview of the struct array pointed to by themFacesfield.
-
mNumBones
public int mNumBones()
Returns the value of themNumBonesfield.
-
mBones
@Nullable public org.lwjgl.PointerBuffer mBones()
Returns aPointerBufferview of the data pointed to by themBonesfield.
-
mMaterialIndex
public int mMaterialIndex()
Returns the value of themMaterialIndexfield.
-
mNumAnimMeshes
public int mNumAnimMeshes()
Returns the value of themNumAnimMeshesfield.
-
mAnimMeshes
@Nullable public org.lwjgl.PointerBuffer mAnimMeshes()
Returns aPointerBufferview of the data pointed to by themAnimMeshesfield.
-
mMethod
public int mMethod()
Returns the value of themMethodfield.
-
mPrimitiveTypes
public AIMesh.Buffer mPrimitiveTypes(int value)
Sets the specified value to themPrimitiveTypesfield.
-
mNumVertices
public AIMesh.Buffer mNumVertices(int value)
Sets the specified value to themNumVerticesfield.
-
mVertices
public AIMesh.Buffer mVertices(AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themVerticesfield.
-
mNormals
public AIMesh.Buffer mNormals(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themNormalsfield.
-
mTangents
public AIMesh.Buffer mTangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themTangentsfield.
-
mBitangents
public AIMesh.Buffer mBitangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themBitangentsfield.
-
mColors
public AIMesh.Buffer mColors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto themColorsfield.
-
mColors
public AIMesh.Buffer mColors(int index, @Nullable AIColor4D.Buffer value)
Copies the address of the specifiedAIColor4Dat the specified index of themColorsfield.
-
mColors
public AIMesh.Buffer mColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)
Passes the element atindexof themColorsfield to the specifiedConsumer.
-
mTextureCoords
public AIMesh.Buffer mTextureCoords(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto themTextureCoordsfield.
-
mTextureCoords
public AIMesh.Buffer mTextureCoords(int index, @Nullable AIVector3D.Buffer value)
Copies the address of the specifiedAIVector3Dat the specified index of themTextureCoordsfield.
-
mTextureCoords
public AIMesh.Buffer mTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)
Passes the element atindexof themTextureCoordsfield to the specifiedConsumer.
-
mNumUVComponents
public AIMesh.Buffer mNumUVComponents(java.nio.IntBuffer value)
Copies the specifiedIntBufferto themNumUVComponentsfield.
-
mNumUVComponents
public AIMesh.Buffer mNumUVComponents(int index, int value)
Sets the specified value at the specified index of themNumUVComponentsfield.
-
mFaces
public AIMesh.Buffer mFaces(AIFace.Buffer value)
Sets the address of the specifiedAIFace.Bufferto themFacesfield.
-
mBones
public AIMesh.Buffer mBones(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto themBonesfield.
-
mMaterialIndex
public AIMesh.Buffer mMaterialIndex(int value)
Sets the specified value to themMaterialIndexfield.
-
mName
public AIMesh.Buffer mName(AIString value)
Copies the specifiedAIStringto themNamefield.
-
mName
public AIMesh.Buffer mName(java.util.function.Consumer<AIString> consumer)
Passes themNamefield to the specifiedConsumer.
-
mAnimMeshes
public AIMesh.Buffer mAnimMeshes(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto themAnimMeshesfield.
-
mMethod
public AIMesh.Buffer mMethod(int value)
Sets the specified value to themMethodfield.
-
mAABB
public AIMesh.Buffer mAABB(AIAABB value)
Copies the specifiedAIAABBto themAABBfield.
-
mAABB
public AIMesh.Buffer mAABB(java.util.function.Consumer<AIAABB> consumer)
Passes themAABBfield to the specifiedConsumer.
-
-