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()
Returns aAIAABB
view of themAABB
field.AIMesh.Buffer
mAABB(java.util.function.Consumer<AIAABB> consumer)
Passes themAABB
field to the specifiedConsumer
.AIMesh.Buffer
mAABB(AIAABB value)
Copies the specifiedAIAABB
to themAABB
field.org.lwjgl.PointerBuffer
mAnimMeshes()
Returns aPointerBuffer
view of the data pointed to by themAnimMeshes
field.AIMesh.Buffer
mAnimMeshes(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to themAnimMeshes
field.AIVector3D.Buffer
mBitangents()
Returns aAIVector3D.Buffer
view of the struct array pointed to by themBitangents
field.AIMesh.Buffer
mBitangents(AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to themBitangents
field.org.lwjgl.PointerBuffer
mBones()
Returns aPointerBuffer
view of the data pointed to by themBones
field.AIMesh.Buffer
mBones(org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to themBones
field.org.lwjgl.PointerBuffer
mColors()
Returns aPointerBuffer
view of themColors
field.AIColor4D.Buffer
mColors(int index)
Returns aAIColor4D
view of the pointer at the specified index of themColors
field.AIMesh.Buffer
mColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)
Passes the element atindex
of themColors
field to the specifiedConsumer
.AIMesh.Buffer
mColors(int index, AIColor4D.Buffer value)
Copies the address of the specifiedAIColor4D
at the specified index of themColors
field.AIMesh.Buffer
mColors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBuffer
to themColors
field.AIFace.Buffer
mFaces()
Returns aAIFace.Buffer
view of the struct array pointed to by themFaces
field.AIMesh.Buffer
mFaces(AIFace.Buffer value)
Sets the address of the specifiedAIFace.Buffer
to themFaces
field.int
mMaterialIndex()
Returns the value of themMaterialIndex
field.AIMesh.Buffer
mMaterialIndex(int value)
Sets the specified value to themMaterialIndex
field.int
mMethod()
Returns the value of themMethod
field.AIMesh.Buffer
mMethod(int value)
Sets the specified value to themMethod
field.AIString
mName()
Returns aAIString
view of themName
field.AIMesh.Buffer
mName(java.util.function.Consumer<AIString> consumer)
Passes themName
field to the specifiedConsumer
.AIMesh.Buffer
mName(AIString value)
Copies the specifiedAIString
to themName
field.AIVector3D.Buffer
mNormals()
Returns aAIVector3D.Buffer
view of the struct array pointed to by themNormals
field.AIMesh.Buffer
mNormals(AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to themNormals
field.int
mNumAnimMeshes()
Returns the value of themNumAnimMeshes
field.int
mNumBones()
Returns the value of themNumBones
field.int
mNumFaces()
Returns the value of themNumFaces
field.java.nio.IntBuffer
mNumUVComponents()
Returns aIntBuffer
view of themNumUVComponents
field.int
mNumUVComponents(int index)
Returns the value at the specified index of themNumUVComponents
field.AIMesh.Buffer
mNumUVComponents(int index, int value)
Sets the specified value at the specified index of themNumUVComponents
field.AIMesh.Buffer
mNumUVComponents(java.nio.IntBuffer value)
Copies the specifiedIntBuffer
to themNumUVComponents
field.int
mNumVertices()
Returns the value of themNumVertices
field.AIMesh.Buffer
mNumVertices(int value)
Sets the specified value to themNumVertices
field.int
mPrimitiveTypes()
Returns the value of themPrimitiveTypes
field.AIMesh.Buffer
mPrimitiveTypes(int value)
Sets the specified value to themPrimitiveTypes
field.AIVector3D.Buffer
mTangents()
Returns aAIVector3D.Buffer
view of the struct array pointed to by themTangents
field.AIMesh.Buffer
mTangents(AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to themTangents
field.org.lwjgl.PointerBuffer
mTextureCoords()
Returns aPointerBuffer
view of themTextureCoords
field.AIVector3D.Buffer
mTextureCoords(int index)
Returns aAIVector3D
view of the pointer at the specified index of themTextureCoords
field.AIMesh.Buffer
mTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)
Passes the element atindex
of themTextureCoords
field to the specifiedConsumer
.AIMesh.Buffer
mTextureCoords(int index, AIVector3D.Buffer value)
Copies the address of the specifiedAIVector3D
at the specified index of themTextureCoords
field.AIMesh.Buffer
mTextureCoords(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBuffer
to themTextureCoords
field.AIVector3D.Buffer
mVertices()
Returns aAIVector3D.Buffer
view of the struct array pointed to by themVertices
field.AIMesh.Buffer
mVertices(AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to themVertices
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 themPrimitiveTypes
field.
-
mNumVertices
public int mNumVertices()
Returns the value of themNumVertices
field.
-
mNumFaces
public int mNumFaces()
Returns the value of themNumFaces
field.
-
mVertices
public AIVector3D.Buffer mVertices()
Returns aAIVector3D.Buffer
view of the struct array pointed to by themVertices
field.
-
mNormals
@Nullable public AIVector3D.Buffer mNormals()
Returns aAIVector3D.Buffer
view of the struct array pointed to by themNormals
field.
-
mTangents
@Nullable public AIVector3D.Buffer mTangents()
Returns aAIVector3D.Buffer
view of the struct array pointed to by themTangents
field.
-
mBitangents
@Nullable public AIVector3D.Buffer mBitangents()
Returns aAIVector3D.Buffer
view of the struct array pointed to by themBitangents
field.
-
mColors
public org.lwjgl.PointerBuffer mColors()
Returns aPointerBuffer
view of themColors
field.
-
mColors
@Nullable public AIColor4D.Buffer mColors(int index)
Returns aAIColor4D
view of the pointer at the specified index of themColors
field.
-
mTextureCoords
public org.lwjgl.PointerBuffer mTextureCoords()
Returns aPointerBuffer
view of themTextureCoords
field.
-
mTextureCoords
@Nullable public AIVector3D.Buffer mTextureCoords(int index)
Returns aAIVector3D
view of the pointer at the specified index of themTextureCoords
field.
-
mNumUVComponents
public java.nio.IntBuffer mNumUVComponents()
Returns aIntBuffer
view of themNumUVComponents
field.
-
mNumUVComponents
public int mNumUVComponents(int index)
Returns the value at the specified index of themNumUVComponents
field.
-
mFaces
public AIFace.Buffer mFaces()
Returns aAIFace.Buffer
view of the struct array pointed to by themFaces
field.
-
mNumBones
public int mNumBones()
Returns the value of themNumBones
field.
-
mBones
@Nullable public org.lwjgl.PointerBuffer mBones()
Returns aPointerBuffer
view of the data pointed to by themBones
field.
-
mMaterialIndex
public int mMaterialIndex()
Returns the value of themMaterialIndex
field.
-
mNumAnimMeshes
public int mNumAnimMeshes()
Returns the value of themNumAnimMeshes
field.
-
mAnimMeshes
@Nullable public org.lwjgl.PointerBuffer mAnimMeshes()
Returns aPointerBuffer
view of the data pointed to by themAnimMeshes
field.
-
mMethod
public int mMethod()
Returns the value of themMethod
field.
-
mPrimitiveTypes
public AIMesh.Buffer mPrimitiveTypes(int value)
Sets the specified value to themPrimitiveTypes
field.
-
mNumVertices
public AIMesh.Buffer mNumVertices(int value)
Sets the specified value to themNumVertices
field.
-
mVertices
public AIMesh.Buffer mVertices(AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to themVertices
field.
-
mNormals
public AIMesh.Buffer mNormals(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to themNormals
field.
-
mTangents
public AIMesh.Buffer mTangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to themTangents
field.
-
mBitangents
public AIMesh.Buffer mBitangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Buffer
to themBitangents
field.
-
mColors
public AIMesh.Buffer mColors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBuffer
to themColors
field.
-
mColors
public AIMesh.Buffer mColors(int index, @Nullable AIColor4D.Buffer value)
Copies the address of the specifiedAIColor4D
at the specified index of themColors
field.
-
mColors
public AIMesh.Buffer mColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)
Passes the element atindex
of themColors
field to the specifiedConsumer
.
-
mTextureCoords
public AIMesh.Buffer mTextureCoords(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBuffer
to themTextureCoords
field.
-
mTextureCoords
public AIMesh.Buffer mTextureCoords(int index, @Nullable AIVector3D.Buffer value)
Copies the address of the specifiedAIVector3D
at the specified index of themTextureCoords
field.
-
mTextureCoords
public AIMesh.Buffer mTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)
Passes the element atindex
of themTextureCoords
field to the specifiedConsumer
.
-
mNumUVComponents
public AIMesh.Buffer mNumUVComponents(java.nio.IntBuffer value)
Copies the specifiedIntBuffer
to themNumUVComponents
field.
-
mNumUVComponents
public AIMesh.Buffer mNumUVComponents(int index, int value)
Sets the specified value at the specified index of themNumUVComponents
field.
-
mFaces
public AIMesh.Buffer mFaces(AIFace.Buffer value)
Sets the address of the specifiedAIFace.Buffer
to themFaces
field.
-
mBones
public AIMesh.Buffer mBones(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to themBones
field.
-
mMaterialIndex
public AIMesh.Buffer mMaterialIndex(int value)
Sets the specified value to themMaterialIndex
field.
-
mName
public AIMesh.Buffer mName(AIString value)
Copies the specifiedAIString
to themName
field.
-
mName
public AIMesh.Buffer mName(java.util.function.Consumer<AIString> consumer)
Passes themName
field to the specifiedConsumer
.
-
mAnimMeshes
public AIMesh.Buffer mAnimMeshes(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBuffer
to themAnimMeshes
field.
-
mMethod
public AIMesh.Buffer mMethod(int value)
Sets the specified value to themMethod
field.
-
mAABB
public AIMesh.Buffer mAABB(AIAABB value)
Copies the specifiedAIAABB
to themAABB
field.
-
mAABB
public AIMesh.Buffer mAABB(java.util.function.Consumer<AIAABB> consumer)
Passes themAABB
field to the specifiedConsumer
.
-
-