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 ofAIMesh
structs.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AIAABB
mAABB()
AIMesh.Buffer
mAABB(java.util.function.Consumer<AIAABB> consumer)
Passes theAIMesh.mAABB()
field to the specifiedConsumer
.AIMesh.Buffer
mAABB(AIAABB value)
Copies the specifiedAIAABB
to theAIMesh.mAABB()
field.org.lwjgl.PointerBuffer
mAnimMeshes()
AIMesh.Buffer
mAnimMeshes(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to theAIMesh.mAnimMeshes()
field.AIVector3D.Buffer
mBitangents()
AIMesh.Buffer
mBitangents(AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to theAIMesh.mBitangents()
field.org.lwjgl.PointerBuffer
mBones()
AIMesh.Buffer
mBones(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to theAIMesh.mBones()
field.org.lwjgl.PointerBuffer
mColors()
AIColor4D.Buffer
mColors(int index)
AIMesh.Buffer
mColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)
AIMesh.Buffer
mColors(int index, AIColor4D.Buffer value)
Copies the address of the specifiedAIColor4D.Buffer
at the specified index of theAIMesh.mColors()
field.AIMesh.Buffer
mColors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBuffer
to theAIMesh.mColors()
field.AIFace.Buffer
mFaces()
AIMesh.Buffer
mFaces(AIFace.Buffer value)
Sets the address of the specifiedAIFace.Buffer
to theAIMesh.mFaces()
field.int
mMaterialIndex()
AIMesh.Buffer
mMaterialIndex(int value)
Sets the specified value to theAIMesh.mMaterialIndex()
field.int
mMethod()
AIMesh.Buffer
mMethod(int value)
Sets the specified value to theAIMesh.mMethod()
field.AIString
mName()
AIMesh.Buffer
mName(java.util.function.Consumer<AIString> consumer)
Passes theAIMesh.mName()
field to the specifiedConsumer
.AIMesh.Buffer
mName(AIString value)
Copies the specifiedAIString
to theAIMesh.mName()
field.AIVector3D.Buffer
mNormals()
AIMesh.Buffer
mNormals(AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to theAIMesh.mNormals()
field.int
mNumAnimMeshes()
int
mNumBones()
int
mNumFaces()
java.nio.IntBuffer
mNumUVComponents()
int
mNumUVComponents(int index)
AIMesh.Buffer
mNumUVComponents(int index, int value)
Sets the specified value at the specified index of theAIMesh.mNumUVComponents()
field.AIMesh.Buffer
mNumUVComponents(java.nio.IntBuffer value)
Copies the specifiedIntBuffer
to theAIMesh.mNumUVComponents()
field.int
mNumVertices()
AIMesh.Buffer
mNumVertices(int value)
Sets the specified value to theAIMesh.mNumVertices()
field.int
mPrimitiveTypes()
AIMesh.Buffer
mPrimitiveTypes(int value)
Sets the specified value to theAIMesh.mPrimitiveTypes()
field.AIVector3D.Buffer
mTangents()
AIMesh.Buffer
mTangents(AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to theAIMesh.mTangents()
field.org.lwjgl.PointerBuffer
mTextureCoords()
AIVector3D.Buffer
mTextureCoords(int index)
AIMesh.Buffer
mTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)
AIMesh.Buffer
mTextureCoords(int index, AIVector3D.Buffer value)
Copies the address of the specifiedAIVector3D.Buffer
at the specified index of theAIMesh.mTextureCoords()
field.AIMesh.Buffer
mTextureCoords(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBuffer
to theAIMesh.mTextureCoords()
field.org.lwjgl.PointerBuffer
mTextureCoordsNames()
AIMesh.Buffer
mTextureCoordsNames(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to theAIMesh.mTextureCoordsNames()
field.AIVector3D.Buffer
mVertices()
AIMesh.Buffer
mVertices(AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to theAIMesh.mVertices()
field.
-
-
-
Constructor Detail
-
Buffer
public Buffer(java.nio.ByteBuffer container)
Creates a newAIMesh.Buffer
instance 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.Buffer
view of the struct array pointed to by theAIMesh.mVertices()
field.
-
mNormals
@Nullable public AIVector3D.Buffer mNormals()
- Returns:
- a
AIVector3D.Buffer
view of the struct array pointed to by theAIMesh.mNormals()
field.
-
mTangents
@Nullable public AIVector3D.Buffer mTangents()
- Returns:
- a
AIVector3D.Buffer
view of the struct array pointed to by theAIMesh.mTangents()
field.
-
mBitangents
@Nullable public AIVector3D.Buffer mBitangents()
- Returns:
- a
AIVector3D.Buffer
view of the struct array pointed to by theAIMesh.mBitangents()
field.
-
mColors
public org.lwjgl.PointerBuffer mColors()
- Returns:
- a
PointerBuffer
view of theAIMesh.mColors()
field.
-
mColors
@Nullable public AIColor4D.Buffer mColors(int index)
- Returns:
- a
AIColor4D
view of the pointer at the specified index of theAIMesh.mColors()
field.
-
mTextureCoords
public org.lwjgl.PointerBuffer mTextureCoords()
- Returns:
- a
PointerBuffer
view of theAIMesh.mTextureCoords()
field.
-
mTextureCoords
@Nullable public AIVector3D.Buffer mTextureCoords(int index)
- Returns:
- a
AIVector3D
view of the pointer at the specified index of theAIMesh.mTextureCoords()
field.
-
mNumUVComponents
public java.nio.IntBuffer mNumUVComponents()
- Returns:
- a
IntBuffer
view 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.Buffer
view 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
PointerBuffer
view 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
AIString
view 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
PointerBuffer
view 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
AIAABB
view of theAIMesh.mAABB()
field.
-
mTextureCoordsNames
@Nullable public org.lwjgl.PointerBuffer mTextureCoordsNames()
- Returns:
- a
PointerBuffer
view 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.Buffer
to theAIMesh.mVertices()
field.
-
mNormals
public AIMesh.Buffer mNormals(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to theAIMesh.mNormals()
field.
-
mTangents
public AIMesh.Buffer mTangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to theAIMesh.mTangents()
field.
-
mBitangents
public AIMesh.Buffer mBitangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to theAIMesh.mBitangents()
field.
-
mColors
public AIMesh.Buffer mColors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBuffer
to theAIMesh.mColors()
field.
-
mColors
public AIMesh.Buffer mColors(int index, @Nullable AIColor4D.Buffer value)
Copies the address of the specifiedAIColor4D.Buffer
at 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 specifiedPointerBuffer
to theAIMesh.mTextureCoords()
field.
-
mTextureCoords
public AIMesh.Buffer mTextureCoords(int index, @Nullable AIVector3D.Buffer value)
Copies the address of the specifiedAIVector3D.Buffer
at 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 specifiedIntBuffer
to 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.Buffer
to theAIMesh.mFaces()
field.
-
mBones
public AIMesh.Buffer mBones(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to 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 specifiedAIString
to 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 specifiedPointerBuffer
to 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 specifiedAIAABB
to 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 specifiedPointerBuffer
to theAIMesh.mTextureCoordsNames()
field.
-
-