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()AIMesh.BuffermAABB(java.util.function.Consumer<AIAABB> consumer)Passes theAIMesh.mAABB()field to the specifiedConsumer.AIMesh.BuffermAABB(AIAABB value)Copies the specifiedAIAABBto theAIMesh.mAABB()field.org.lwjgl.PointerBuffermAnimMeshes()AIMesh.BuffermAnimMeshes(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto theAIMesh.mAnimMeshes()field.AIVector3D.BuffermBitangents()AIMesh.BuffermBitangents(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto theAIMesh.mBitangents()field.org.lwjgl.PointerBuffermBones()AIMesh.BuffermBones(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto theAIMesh.mBones()field.org.lwjgl.PointerBuffermColors()AIColor4D.BuffermColors(int index)AIMesh.BuffermColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)AIMesh.BuffermColors(int index, AIColor4D.Buffer value)Copies the address of the specifiedAIColor4D.Bufferat the specified index of theAIMesh.mColors()field.AIMesh.BuffermColors(org.lwjgl.PointerBuffer value)Copies the specifiedPointerBufferto theAIMesh.mColors()field.AIFace.BuffermFaces()AIMesh.BuffermFaces(AIFace.Buffer value)Sets the address of the specifiedAIFace.Bufferto theAIMesh.mFaces()field.intmMaterialIndex()AIMesh.BuffermMaterialIndex(int value)Sets the specified value to theAIMesh.mMaterialIndex()field.intmMethod()AIMesh.BuffermMethod(int value)Sets the specified value to theAIMesh.mMethod()field.AIStringmName()AIMesh.BuffermName(java.util.function.Consumer<AIString> consumer)Passes theAIMesh.mName()field to the specifiedConsumer.AIMesh.BuffermName(AIString value)Copies the specifiedAIStringto theAIMesh.mName()field.AIVector3D.BuffermNormals()AIMesh.BuffermNormals(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto theAIMesh.mNormals()field.intmNumAnimMeshes()intmNumBones()intmNumFaces()java.nio.IntBuffermNumUVComponents()intmNumUVComponents(int index)AIMesh.BuffermNumUVComponents(int index, int value)Sets the specified value at the specified index of theAIMesh.mNumUVComponents()field.AIMesh.BuffermNumUVComponents(java.nio.IntBuffer value)Copies the specifiedIntBufferto theAIMesh.mNumUVComponents()field.intmNumVertices()AIMesh.BuffermNumVertices(int value)Sets the specified value to theAIMesh.mNumVertices()field.intmPrimitiveTypes()AIMesh.BuffermPrimitiveTypes(int value)Sets the specified value to theAIMesh.mPrimitiveTypes()field.AIVector3D.BuffermTangents()AIMesh.BuffermTangents(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto theAIMesh.mTangents()field.org.lwjgl.PointerBuffermTextureCoords()AIVector3D.BuffermTextureCoords(int index)AIMesh.BuffermTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)AIMesh.BuffermTextureCoords(int index, AIVector3D.Buffer value)Copies the address of the specifiedAIVector3D.Bufferat the specified index of theAIMesh.mTextureCoords()field.AIMesh.BuffermTextureCoords(org.lwjgl.PointerBuffer value)Copies the specifiedPointerBufferto theAIMesh.mTextureCoords()field.org.lwjgl.PointerBuffermTextureCoordsNames()AIMesh.BuffermTextureCoordsNames(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto theAIMesh.mTextureCoordsNames()field.AIVector3D.BuffermVertices()AIMesh.BuffermVertices(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto theAIMesh.mVertices()field.
-
-
-
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 the
AIMesh.mPrimitiveTypes()field.
-
mNumVertices
public int mNumVertices()
- Returns:
- the value of the
AIMesh.mNumVertices()field.
-
mNumFaces
public int mNumFaces()
- Returns:
- the value of the
AIMesh.mNumFaces()field.
-
mVertices
public AIVector3D.Buffer mVertices()
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by theAIMesh.mVertices()field.
-
mNormals
@Nullable public AIVector3D.Buffer mNormals()
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by theAIMesh.mNormals()field.
-
mTangents
@Nullable public AIVector3D.Buffer mTangents()
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by theAIMesh.mTangents()field.
-
mBitangents
@Nullable public AIVector3D.Buffer mBitangents()
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by theAIMesh.mBitangents()field.
-
mColors
public org.lwjgl.PointerBuffer mColors()
- Returns:
- a
PointerBufferview of theAIMesh.mColors()field.
-
mColors
@Nullable public AIColor4D.Buffer mColors(int index)
- Returns:
- a
AIColor4Dview of the pointer at the specified index of theAIMesh.mColors()field.
-
mTextureCoords
public org.lwjgl.PointerBuffer mTextureCoords()
- Returns:
- a
PointerBufferview of theAIMesh.mTextureCoords()field.
-
mTextureCoords
@Nullable public AIVector3D.Buffer mTextureCoords(int index)
- Returns:
- a
AIVector3Dview of the pointer at the specified index of theAIMesh.mTextureCoords()field.
-
mNumUVComponents
public java.nio.IntBuffer mNumUVComponents()
- Returns:
- a
IntBufferview of theAIMesh.mNumUVComponents()field.
-
mNumUVComponents
public int mNumUVComponents(int index)
- Returns:
- the value at the specified index of the
AIMesh.mNumUVComponents()field.
-
mFaces
public AIFace.Buffer mFaces()
- Returns:
- a
AIFace.Bufferview of the struct array pointed to by theAIMesh.mFaces()field.
-
mNumBones
public int mNumBones()
- Returns:
- the value of the
AIMesh.mNumBones()field.
-
mBones
@Nullable public org.lwjgl.PointerBuffer mBones()
- Returns:
- a
PointerBufferview of the data pointed to by theAIMesh.mBones()field.
-
mMaterialIndex
public int mMaterialIndex()
- Returns:
- the value of the
AIMesh.mMaterialIndex()field.
-
mName
public AIString mName()
- Returns:
- a
AIStringview of theAIMesh.mName()field.
-
mNumAnimMeshes
public int mNumAnimMeshes()
- Returns:
- the value of the
AIMesh.mNumAnimMeshes()field.
-
mAnimMeshes
@Nullable public org.lwjgl.PointerBuffer mAnimMeshes()
- Returns:
- a
PointerBufferview of the data pointed to by theAIMesh.mAnimMeshes()field.
-
mMethod
public int mMethod()
- Returns:
- the value of the
AIMesh.mMethod()field.
-
mAABB
public AIAABB mAABB()
- Returns:
- a
AIAABBview of theAIMesh.mAABB()field.
-
mTextureCoordsNames
@Nullable public org.lwjgl.PointerBuffer mTextureCoordsNames()
- Returns:
- a
PointerBufferview of the data pointed to by theAIMesh.mTextureCoordsNames()field.
-
mPrimitiveTypes
public AIMesh.Buffer mPrimitiveTypes(int value)
Sets the specified value to theAIMesh.mPrimitiveTypes()field.
-
mNumVertices
public AIMesh.Buffer mNumVertices(int value)
Sets the specified value to theAIMesh.mNumVertices()field.
-
mVertices
public AIMesh.Buffer mVertices(AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto theAIMesh.mVertices()field.
-
mNormals
public AIMesh.Buffer mNormals(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto theAIMesh.mNormals()field.
-
mTangents
public AIMesh.Buffer mTangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto theAIMesh.mTangents()field.
-
mBitangents
public AIMesh.Buffer mBitangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto theAIMesh.mBitangents()field.
-
mColors
public AIMesh.Buffer mColors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto theAIMesh.mColors()field.
-
mColors
public AIMesh.Buffer mColors(int index, @Nullable AIColor4D.Buffer value)
Copies the address of the specifiedAIColor4D.Bufferat the specified index of theAIMesh.mColors()field.
-
mColors
public AIMesh.Buffer mColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)
-
mTextureCoords
public AIMesh.Buffer mTextureCoords(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto theAIMesh.mTextureCoords()field.
-
mTextureCoords
public AIMesh.Buffer mTextureCoords(int index, @Nullable AIVector3D.Buffer value)
Copies the address of the specifiedAIVector3D.Bufferat the specified index of theAIMesh.mTextureCoords()field.
-
mTextureCoords
public AIMesh.Buffer mTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)
-
mNumUVComponents
public AIMesh.Buffer mNumUVComponents(java.nio.IntBuffer value)
Copies the specifiedIntBufferto theAIMesh.mNumUVComponents()field.
-
mNumUVComponents
public AIMesh.Buffer mNumUVComponents(int index, int value)
Sets the specified value at the specified index of theAIMesh.mNumUVComponents()field.
-
mFaces
public AIMesh.Buffer mFaces(AIFace.Buffer value)
Sets the address of the specifiedAIFace.Bufferto theAIMesh.mFaces()field.
-
mBones
public AIMesh.Buffer mBones(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto theAIMesh.mBones()field.
-
mMaterialIndex
public AIMesh.Buffer mMaterialIndex(int value)
Sets the specified value to theAIMesh.mMaterialIndex()field.
-
mName
public AIMesh.Buffer mName(AIString value)
Copies the specifiedAIStringto theAIMesh.mName()field.
-
mName
public AIMesh.Buffer mName(java.util.function.Consumer<AIString> consumer)
Passes theAIMesh.mName()field to the specifiedConsumer.
-
mAnimMeshes
public AIMesh.Buffer mAnimMeshes(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto theAIMesh.mAnimMeshes()field.
-
mMethod
public AIMesh.Buffer mMethod(int value)
Sets the specified value to theAIMesh.mMethod()field.
-
mAABB
public AIMesh.Buffer mAABB(AIAABB value)
Copies the specifiedAIAABBto theAIMesh.mAABB()field.
-
mAABB
public AIMesh.Buffer mAABB(java.util.function.Consumer<AIAABB> consumer)
Passes theAIMesh.mAABB()field to the specifiedConsumer.
-
mTextureCoordsNames
public AIMesh.Buffer mTextureCoordsNames(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto theAIMesh.mTextureCoordsNames()field.
-
-