public class AIMesh
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
It usually consists of a number of vertices and a series of primitives/faces referencing the vertices. In addition there might be a series of bones, each of them addressing a number of vertices with a certain weight. Vertex data is presented in channels with each channel containing a single per-vertex information such as a set of texture coords or a normal vector. If a data pointer is non-null, the corresponding data stream is present.
A Mesh uses only a single material which is referenced by a material ID.
mPrimitiveTypes – Bitwise combination of the members of the aiPrimitiveType enum. This specifies which types of primitives are present in the mesh. The
"SortByPrimitiveType"-Step can be used to make sure the output meshes consist of one primitive type each. One or more of:PrimitiveType_POINT | PrimitiveType_LINE | PrimitiveType_TRIANGLE | PrimitiveType_POLYGON |
mNumVertices –
The number of vertices in this mesh. This is also the size of all of the per-vertex data arrays. The maximum value for this member is Assimp.AI_MAX_VERTICES.mNumFaces –
The number of primitives (triangles, polygons, lines) in this mesh. This is also the size of the mFaces array. The maximum value for this
member is Assimp.AI_MAX_FACES.mVertices – Vertex positions. This array is always present in a mesh. The array is mNumVertices in size.mNormals –
Vertex normals.
The array contains normalized vectors, NULL if not present. The array is mNumVertices in size. Normals are undefined for point and line
primitives. A mesh consisting of points and lines only may not have normal vectors. Meshes with mixed primitive types (i.e. lines and triangles) may
have normals, but the normals for vertices that are only referenced by point or line primitives are undefined and set to qNaN.
Normal vectors computed by Assimp are always unit-length. However, this needn't apply for normals that have been taken directly from the model file
mTangents –
Vertex tangents.
The tangent of a vertex points in the direction of the positive X texture axis. The array contains normalized vectors, NULL if not present. The array
is mNumVertices in size. A mesh consisting of points and lines only may not have normal vectors. Meshes with mixed primitive types (i.e. lines
and triangles) may have normals, but the normals for vertices that are only referenced by point or line primitives are undefined and set to
qNaN.
If the mesh contains tangents, it automatically also contains bitangents.
mBitangents –
Vertex bitangents.
The bitangent of a vertex points in the direction of the positive Y texture axis. The array contains normalized vectors, NULL if not present. The
array is mNumVertices in size.
If the mesh contains tangents, it automatically also contains bitangents.
mColors[Assimp.AI_MAX_NUMBER_OF_COLOR_SETS] –
Vertex color sets. A mesh may contain 0 to Assimp.AI_MAX_NUMBER_OF_COLOR_SETS vertex colors per vertex. NULL if not present. Each array is
mNumVertices in size if present.mTextureCoords[Assimp.AI_MAX_NUMBER_OF_TEXTURECOORDS] –
Vertex texture coords, also known as UV channels. A mesh may contain 0 to Assimp.AI_MAX_NUMBER_OF_TEXTURECOORDS per vertex. NULL if not present. The array
is mNumVertices in size.mNumUVComponents[Assimp.AI_MAX_NUMBER_OF_TEXTURECOORDS] –
Specifies the number of components for a given UV channel. Up to three channels are supported (UVW, for accessing volume or cube maps). If the value is
2 for a given channel n, the component p.z of mTextureCoords[n][p] is set to 0.0f. If the value is 1 for a given channel, p.y
is set to 0.0f, too.mFaces –
The faces the mesh is constructed from. Each face refers to a number of vertices by their indices. This array is always present in a mesh, its size is
given in mNumFaces. If the Assimp.AI_SCENE_FLAGS_NON_VERBOSE_FORMAT is NOT set each face references an unique set of vertices.mNumBones – The number of bones this mesh contains. Can be 0, in which case the mBones array is NULL.mBones – The bones of this mesh. A bone consists of a name by which it can be found in the frame hierarchy and a set of vertex weights.mMaterialIndex –
The material used by this mesh. A mesh uses only a single material. If an imported model uses multiple materials, the import splits up the mesh. Use
this value as index into the scene's material list.mName –
Name of the mesh.
Meshes can be named, but this is not a requirement and leaving this field empty is totally fine. There are mainly three uses for mesh names:
mNumAnimMeshes – The number of attachment meshes. Note! Currently only works with Collada loader.mAnimMeshes –
Attachment meshes for this mesh, for vertex-based animation. Attachment meshes carry replacement data for some of the mesh'es vertex components
(usually positions, normals). Note! Currently only works with Collada loader.mMethod – Method of morphing when animeshes are specified. One of:MorphingMethod_VERTEX_BLEND | MorphingMethod_MORPH_NORMALIZED |
MorphingMethod_MORPH_RELATIVE |
struct aiMesh {
unsigned int mPrimitiveTypes;
unsigned int mNumVertices;
unsigned int mNumFaces;
struct aiVector3D * mVertices;
struct aiVector3D * mNormals;
struct aiVector3D * mTangents;
struct aiVector3D * mBitangents;
struct aiColor4D * mColors[Assimp.AI_MAX_NUMBER_OF_COLOR_SETS];
struct aiVector3D * mTextureCoords[Assimp.AI_MAX_NUMBER_OF_TEXTURECOORDS];
unsigned int mNumUVComponents[Assimp.AI_MAX_NUMBER_OF_TEXTURECOORDS];
struct aiFace * mFaces;
unsigned int mNumBones;
struct aiBone ** mBones;
unsigned int mMaterialIndex;
struct aiString mName;
unsigned int mNumAnimMeshes;
struct aiAnimMesh ** mAnimMeshes;
unsigned int mMethod;
struct aiAABB mAABB;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIMesh.Buffer
An array of
AIMesh structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MAABB
The struct member offsets.
|
static int |
MANIMMESHES
The struct member offsets.
|
static int |
MBITANGENTS
The struct member offsets.
|
static int |
MBONES
The struct member offsets.
|
static int |
MCOLORS
The struct member offsets.
|
static int |
MFACES
The struct member offsets.
|
static int |
MMATERIALINDEX
The struct member offsets.
|
static int |
MMETHOD
The struct member offsets.
|
static int |
MNAME
The struct member offsets.
|
static int |
MNORMALS
The struct member offsets.
|
static int |
MNUMANIMMESHES
The struct member offsets.
|
static int |
MNUMBONES
The struct member offsets.
|
static int |
MNUMFACES
The struct member offsets.
|
static int |
MNUMUVCOMPONENTS
The struct member offsets.
|
static int |
MNUMVERTICES
The struct member offsets.
|
static int |
MPRIMITIVETYPES
The struct member offsets.
|
static int |
MTANGENTS
The struct member offsets.
|
static int |
MTEXTURECOORDS
The struct member offsets.
|
static int |
MVERTICES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AIMesh(java.nio.ByteBuffer container)
Creates a
AIMesh instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIMesh |
calloc()
Returns a new
AIMesh instance allocated with memCalloc. |
static AIMesh.Buffer |
calloc(int capacity)
Returns a new
AIMesh.Buffer instance allocated with memCalloc. |
static AIMesh |
callocStack()
Returns a new
AIMesh instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMesh.Buffer |
callocStack(int capacity)
Returns a new
AIMesh.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIMesh.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMesh.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIMesh |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMesh instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIMesh |
create()
Returns a new
AIMesh instance allocated with BufferUtils. |
static AIMesh.Buffer |
create(int capacity)
Returns a new
AIMesh.Buffer instance allocated with BufferUtils. |
static AIMesh |
create(long address)
Returns a new
AIMesh instance for the specified memory address. |
static AIMesh.Buffer |
create(long address,
int capacity)
Create a
AIMesh.Buffer instance at the specified memory. |
static AIMesh |
createSafe(long address)
|
static AIMesh.Buffer |
createSafe(long address,
int capacity)
|
AIAABB |
mAABB()
Returns a
AIAABB view of the mAABB field. |
AIMesh |
mAABB(AIAABB value)
Copies the specified
AIAABB to the mAABB field. |
AIMesh |
mAABB(java.util.function.Consumer<AIAABB> consumer)
Passes the
mAABB field to the specified Consumer. |
static AIMesh |
malloc()
Returns a new
AIMesh instance allocated with memAlloc. |
static AIMesh.Buffer |
malloc(int capacity)
Returns a new
AIMesh.Buffer instance allocated with memAlloc. |
static AIMesh |
mallocStack()
Returns a new
AIMesh instance allocated on the thread-local MemoryStack. |
static AIMesh.Buffer |
mallocStack(int capacity)
Returns a new
AIMesh.Buffer instance allocated on the thread-local MemoryStack. |
static AIMesh.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIMesh.Buffer instance allocated on the specified MemoryStack. |
static AIMesh |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIMesh instance allocated on the specified MemoryStack. |
org.lwjgl.PointerBuffer |
mAnimMeshes()
Returns a
PointerBuffer view of the data pointed to by the mAnimMeshes field. |
AIMesh |
mAnimMeshes(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the mAnimMeshes field. |
AIVector3D.Buffer |
mBitangents()
Returns a
AIVector3D.Buffer view of the struct array pointed to by the mBitangents field. |
AIMesh |
mBitangents(AIVector3D.Buffer value)
Sets the address of the specified
AIVector3D.Buffer to the mBitangents field. |
org.lwjgl.PointerBuffer |
mBones()
Returns a
PointerBuffer view of the data pointed to by the mBones field. |
AIMesh |
mBones(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the mBones field. |
org.lwjgl.PointerBuffer |
mColors()
Returns a
PointerBuffer view of the mColors field. |
AIColor4D.Buffer |
mColors(int index)
Returns a
AIColor4D view of the pointer at the specified index of the mColors field. |
AIMesh |
mColors(int index,
AIColor4D.Buffer value)
Copies the address of the specified
AIColor4D at the specified index of the mColors field. |
AIMesh |
mColors(int index,
java.util.function.Consumer<AIColor4D.Buffer> consumer)
Passes the element at
index of the mColors field to the specified Consumer. |
AIMesh |
mColors(org.lwjgl.PointerBuffer value)
Copies the specified
PointerBuffer to the mColors field. |
AIFace.Buffer |
mFaces()
Returns a
AIFace.Buffer view of the struct array pointed to by the mFaces field. |
AIMesh |
mFaces(AIFace.Buffer value)
Sets the address of the specified
AIFace.Buffer to the mFaces field. |
int |
mMaterialIndex()
Returns the value of the
mMaterialIndex field. |
AIMesh |
mMaterialIndex(int value)
Sets the specified value to the
mMaterialIndex field. |
int |
mMethod()
Returns the value of the
mMethod field. |
AIMesh |
mMethod(int value)
Sets the specified value to the
mMethod field. |
AIString |
mName()
Returns a
AIString view of the mName field. |
AIMesh |
mName(AIString value)
Copies the specified
AIString to the mName field. |
AIMesh |
mName(java.util.function.Consumer<AIString> consumer)
Passes the
mName field to the specified Consumer. |
AIVector3D.Buffer |
mNormals()
Returns a
AIVector3D.Buffer view of the struct array pointed to by the mNormals field. |
AIMesh |
mNormals(AIVector3D.Buffer value)
Sets the address of the specified
AIVector3D.Buffer to the mNormals field. |
int |
mNumAnimMeshes()
Returns the value of the
mNumAnimMeshes field. |
int |
mNumBones()
Returns the value of the
mNumBones field. |
int |
mNumFaces()
Returns the value of the
mNumFaces field. |
java.nio.IntBuffer |
mNumUVComponents()
Returns a
IntBuffer view of the mNumUVComponents field. |
int |
mNumUVComponents(int index)
Returns the value at the specified index of the
mNumUVComponents field. |
AIMesh |
mNumUVComponents(java.nio.IntBuffer value)
Copies the specified
IntBuffer to the mNumUVComponents field. |
AIMesh |
mNumUVComponents(int index,
int value)
Sets the specified value at the specified index of the
mNumUVComponents field. |
int |
mNumVertices()
Returns the value of the
mNumVertices field. |
AIMesh |
mNumVertices(int value)
Sets the specified value to the
mNumVertices field. |
int |
mPrimitiveTypes()
Returns the value of the
mPrimitiveTypes field. |
AIMesh |
mPrimitiveTypes(int value)
Sets the specified value to the
mPrimitiveTypes field. |
AIVector3D.Buffer |
mTangents()
Returns a
AIVector3D.Buffer view of the struct array pointed to by the mTangents field. |
AIMesh |
mTangents(AIVector3D.Buffer value)
Sets the address of the specified
AIVector3D.Buffer to the mTangents field. |
org.lwjgl.PointerBuffer |
mTextureCoords()
Returns a
PointerBuffer view of the mTextureCoords field. |
AIVector3D.Buffer |
mTextureCoords(int index)
Returns a
AIVector3D view of the pointer at the specified index of the mTextureCoords field. |
AIMesh |
mTextureCoords(int index,
AIVector3D.Buffer value)
Copies the address of the specified
AIVector3D at the specified index of the mTextureCoords field. |
AIMesh |
mTextureCoords(int index,
java.util.function.Consumer<AIVector3D.Buffer> consumer)
Passes the element at
index of the mTextureCoords field to the specified Consumer. |
AIMesh |
mTextureCoords(org.lwjgl.PointerBuffer value)
Copies the specified
PointerBuffer to the mTextureCoords field. |
AIVector3D.Buffer |
mVertices()
Returns a
AIVector3D.Buffer view of the struct array pointed to by the mVertices field. |
AIMesh |
mVertices(AIVector3D.Buffer value)
Sets the address of the specified
AIVector3D.Buffer to the mVertices field. |
static AIAABB |
nmAABB(long struct)
Unsafe version of
mAABB(). |
static void |
nmAABB(long struct,
AIAABB value)
Unsafe version of
mAABB. |
static org.lwjgl.PointerBuffer |
nmAnimMeshes(long struct)
Unsafe version of
mAnimMeshes. |
static void |
nmAnimMeshes(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
mAnimMeshes. |
static AIVector3D.Buffer |
nmBitangents(long struct)
Unsafe version of
mBitangents(). |
static void |
nmBitangents(long struct,
AIVector3D.Buffer value)
Unsafe version of
mBitangents. |
static org.lwjgl.PointerBuffer |
nmBones(long struct)
Unsafe version of
mBones. |
static void |
nmBones(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
mBones. |
static org.lwjgl.PointerBuffer |
nmColors(long struct)
Unsafe version of
mColors(). |
static AIColor4D.Buffer |
nmColors(long struct,
int index)
Unsafe version of
mColors. |
static void |
nmColors(long struct,
int index,
AIColor4D.Buffer value)
Unsafe version of
mColors. |
static void |
nmColors(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
mColors. |
static AIFace.Buffer |
nmFaces(long struct)
Unsafe version of
mFaces(). |
static void |
nmFaces(long struct,
AIFace.Buffer value)
Unsafe version of
mFaces. |
static int |
nmMaterialIndex(long struct)
Unsafe version of
mMaterialIndex(). |
static void |
nmMaterialIndex(long struct,
int value)
Unsafe version of
mMaterialIndex. |
static int |
nmMethod(long struct)
Unsafe version of
mMethod(). |
static void |
nmMethod(long struct,
int value)
Unsafe version of
mMethod. |
static AIString |
nmName(long struct)
Unsafe version of
mName(). |
static void |
nmName(long struct,
AIString value)
Unsafe version of
mName. |
static AIVector3D.Buffer |
nmNormals(long struct)
Unsafe version of
mNormals(). |
static void |
nmNormals(long struct,
AIVector3D.Buffer value)
Unsafe version of
mNormals. |
static int |
nmNumAnimMeshes(long struct)
Unsafe version of
mNumAnimMeshes(). |
static void |
nmNumAnimMeshes(long struct,
int value)
Sets the specified value to the
mNumAnimMeshes field of the specified struct. |
static int |
nmNumBones(long struct)
Unsafe version of
mNumBones(). |
static void |
nmNumBones(long struct,
int value)
Sets the specified value to the
mNumBones field of the specified struct. |
static int |
nmNumFaces(long struct)
Unsafe version of
mNumFaces(). |
static void |
nmNumFaces(long struct,
int value)
Sets the specified value to the
mNumFaces field of the specified struct. |
static java.nio.IntBuffer |
nmNumUVComponents(long struct)
Unsafe version of
mNumUVComponents(). |
static int |
nmNumUVComponents(long struct,
int index)
Unsafe version of
mNumUVComponents. |
static void |
nmNumUVComponents(long struct,
java.nio.IntBuffer value)
Unsafe version of
mNumUVComponents. |
static void |
nmNumUVComponents(long struct,
int index,
int value)
Unsafe version of
mNumUVComponents. |
static int |
nmNumVertices(long struct)
Unsafe version of
mNumVertices(). |
static void |
nmNumVertices(long struct,
int value)
Sets the specified value to the
mNumVertices field of the specified struct. |
static int |
nmPrimitiveTypes(long struct)
Unsafe version of
mPrimitiveTypes(). |
static void |
nmPrimitiveTypes(long struct,
int value)
Unsafe version of
mPrimitiveTypes. |
static AIVector3D.Buffer |
nmTangents(long struct)
Unsafe version of
mTangents(). |
static void |
nmTangents(long struct,
AIVector3D.Buffer value)
Unsafe version of
mTangents. |
static org.lwjgl.PointerBuffer |
nmTextureCoords(long struct)
Unsafe version of
mTextureCoords(). |
static AIVector3D.Buffer |
nmTextureCoords(long struct,
int index)
Unsafe version of
mTextureCoords. |
static void |
nmTextureCoords(long struct,
int index,
AIVector3D.Buffer value)
Unsafe version of
mTextureCoords. |
static void |
nmTextureCoords(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
mTextureCoords. |
static AIVector3D.Buffer |
nmVertices(long struct)
Unsafe version of
mVertices(). |
static void |
nmVertices(long struct,
AIVector3D.Buffer value)
Unsafe version of
mVertices. |
AIMesh |
set(AIMesh src)
Copies the specified struct data to this struct.
|
AIMesh |
set(int mPrimitiveTypes,
int mNumVertices,
AIVector3D.Buffer mVertices,
AIVector3D.Buffer mNormals,
AIVector3D.Buffer mTangents,
AIVector3D.Buffer mBitangents,
org.lwjgl.PointerBuffer mColors,
org.lwjgl.PointerBuffer mTextureCoords,
java.nio.IntBuffer mNumUVComponents,
AIFace.Buffer mFaces,
org.lwjgl.PointerBuffer mBones,
int mMaterialIndex,
AIString mName,
org.lwjgl.PointerBuffer mAnimMeshes,
int mMethod,
AIAABB mAABB)
Initializes this struct with the specified values.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MPRIMITIVETYPES
public static final int MNUMVERTICES
public static final int MNUMFACES
public static final int MVERTICES
public static final int MNORMALS
public static final int MTANGENTS
public static final int MBITANGENTS
public static final int MCOLORS
public static final int MTEXTURECOORDS
public static final int MNUMUVCOMPONENTS
public static final int MFACES
public static final int MNUMBONES
public static final int MBONES
public static final int MMATERIALINDEX
public static final int MNAME
public static final int MNUMANIMMESHES
public static final int MANIMMESHES
public static final int MMETHOD
public static final int MAABB
public AIMesh(java.nio.ByteBuffer container)
AIMesh instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int mPrimitiveTypes()
mPrimitiveTypes field.public int mNumVertices()
mNumVertices field.public int mNumFaces()
mNumFaces field.public AIVector3D.Buffer mVertices()
AIVector3D.Buffer view of the struct array pointed to by the mVertices field.@Nullable public AIVector3D.Buffer mNormals()
AIVector3D.Buffer view of the struct array pointed to by the mNormals field.@Nullable public AIVector3D.Buffer mTangents()
AIVector3D.Buffer view of the struct array pointed to by the mTangents field.@Nullable public AIVector3D.Buffer mBitangents()
AIVector3D.Buffer view of the struct array pointed to by the mBitangents field.public org.lwjgl.PointerBuffer mColors()
PointerBuffer view of the mColors field.@Nullable public AIColor4D.Buffer mColors(int index)
AIColor4D view of the pointer at the specified index of the mColors field.public org.lwjgl.PointerBuffer mTextureCoords()
PointerBuffer view of the mTextureCoords field.@Nullable public AIVector3D.Buffer mTextureCoords(int index)
AIVector3D view of the pointer at the specified index of the mTextureCoords field.public java.nio.IntBuffer mNumUVComponents()
IntBuffer view of the mNumUVComponents field.public int mNumUVComponents(int index)
mNumUVComponents field.public AIFace.Buffer mFaces()
AIFace.Buffer view of the struct array pointed to by the mFaces field.public int mNumBones()
mNumBones field.@Nullable public org.lwjgl.PointerBuffer mBones()
PointerBuffer view of the data pointed to by the mBones field.public int mMaterialIndex()
mMaterialIndex field.public int mNumAnimMeshes()
mNumAnimMeshes field.@Nullable public org.lwjgl.PointerBuffer mAnimMeshes()
PointerBuffer view of the data pointed to by the mAnimMeshes field.public int mMethod()
mMethod field.public AIMesh mPrimitiveTypes(int value)
mPrimitiveTypes field.public AIMesh mNumVertices(int value)
mNumVertices field.public AIMesh mVertices(AIVector3D.Buffer value)
AIVector3D.Buffer to the mVertices field.public AIMesh mNormals(@Nullable AIVector3D.Buffer value)
AIVector3D.Buffer to the mNormals field.public AIMesh mTangents(@Nullable AIVector3D.Buffer value)
AIVector3D.Buffer to the mTangents field.public AIMesh mBitangents(@Nullable AIVector3D.Buffer value)
AIVector3D.Buffer to the mBitangents field.public AIMesh mColors(org.lwjgl.PointerBuffer value)
PointerBuffer to the mColors field.public AIMesh mColors(int index, @Nullable AIColor4D.Buffer value)
AIColor4D at the specified index of the mColors field.public AIMesh mColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)
index of the mColors field to the specified Consumer.public AIMesh mTextureCoords(org.lwjgl.PointerBuffer value)
PointerBuffer to the mTextureCoords field.public AIMesh mTextureCoords(int index, @Nullable AIVector3D.Buffer value)
AIVector3D at the specified index of the mTextureCoords field.public AIMesh mTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)
index of the mTextureCoords field to the specified Consumer.public AIMesh mNumUVComponents(java.nio.IntBuffer value)
IntBuffer to the mNumUVComponents field.public AIMesh mNumUVComponents(int index, int value)
mNumUVComponents field.public AIMesh mFaces(AIFace.Buffer value)
AIFace.Buffer to the mFaces field.public AIMesh mBones(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the mBones field.public AIMesh mMaterialIndex(int value)
mMaterialIndex field.public AIMesh mName(java.util.function.Consumer<AIString> consumer)
mName field to the specified Consumer.public AIMesh mAnimMeshes(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the mAnimMeshes field.public AIMesh mMethod(int value)
mMethod field.public AIMesh mAABB(java.util.function.Consumer<AIAABB> consumer)
mAABB field to the specified Consumer.public AIMesh set(int mPrimitiveTypes, int mNumVertices, AIVector3D.Buffer mVertices, @Nullable AIVector3D.Buffer mNormals, @Nullable AIVector3D.Buffer mTangents, @Nullable AIVector3D.Buffer mBitangents, org.lwjgl.PointerBuffer mColors, org.lwjgl.PointerBuffer mTextureCoords, java.nio.IntBuffer mNumUVComponents, AIFace.Buffer mFaces, @Nullable org.lwjgl.PointerBuffer mBones, int mMaterialIndex, AIString mName, @Nullable org.lwjgl.PointerBuffer mAnimMeshes, int mMethod, AIAABB mAABB)
public AIMesh set(AIMesh src)
src - the source structpublic static AIMesh malloc()
AIMesh instance allocated with memAlloc. The instance must be explicitly freed.public static AIMesh calloc()
AIMesh instance allocated with memCalloc. The instance must be explicitly freed.public static AIMesh create()
AIMesh instance allocated with BufferUtils.public static AIMesh create(long address)
AIMesh instance for the specified memory address.@Nullable public static AIMesh createSafe(long address)
public static AIMesh.Buffer malloc(int capacity)
AIMesh.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMesh.Buffer calloc(int capacity)
AIMesh.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIMesh.Buffer create(int capacity)
AIMesh.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIMesh.Buffer create(long address, int capacity)
AIMesh.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIMesh.Buffer createSafe(long address, int capacity)
public static AIMesh mallocStack()
AIMesh instance allocated on the thread-local MemoryStack.public static AIMesh callocStack()
AIMesh instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIMesh mallocStack(org.lwjgl.system.MemoryStack stack)
AIMesh instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIMesh callocStack(org.lwjgl.system.MemoryStack stack)
AIMesh instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIMesh.Buffer mallocStack(int capacity)
AIMesh.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIMesh.Buffer callocStack(int capacity)
AIMesh.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIMesh.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMesh.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIMesh.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIMesh.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nmPrimitiveTypes(long struct)
mPrimitiveTypes().public static int nmNumVertices(long struct)
mNumVertices().public static int nmNumFaces(long struct)
mNumFaces().public static AIVector3D.Buffer nmVertices(long struct)
mVertices().@Nullable public static AIVector3D.Buffer nmNormals(long struct)
mNormals().@Nullable public static AIVector3D.Buffer nmTangents(long struct)
mTangents().@Nullable public static AIVector3D.Buffer nmBitangents(long struct)
mBitangents().public static org.lwjgl.PointerBuffer nmColors(long struct)
mColors().@Nullable public static AIColor4D.Buffer nmColors(long struct, int index)
mColors.public static org.lwjgl.PointerBuffer nmTextureCoords(long struct)
mTextureCoords().@Nullable public static AIVector3D.Buffer nmTextureCoords(long struct, int index)
mTextureCoords.public static java.nio.IntBuffer nmNumUVComponents(long struct)
mNumUVComponents().public static int nmNumUVComponents(long struct,
int index)
mNumUVComponents.public static AIFace.Buffer nmFaces(long struct)
mFaces().public static int nmNumBones(long struct)
mNumBones().@Nullable public static org.lwjgl.PointerBuffer nmBones(long struct)
mBones.public static int nmMaterialIndex(long struct)
mMaterialIndex().public static int nmNumAnimMeshes(long struct)
mNumAnimMeshes().@Nullable public static org.lwjgl.PointerBuffer nmAnimMeshes(long struct)
mAnimMeshes.public static int nmMethod(long struct)
mMethod().public static void nmPrimitiveTypes(long struct,
int value)
mPrimitiveTypes.public static void nmNumVertices(long struct,
int value)
mNumVertices field of the specified struct.public static void nmNumFaces(long struct,
int value)
mNumFaces field of the specified struct.public static void nmVertices(long struct,
AIVector3D.Buffer value)
mVertices.public static void nmNormals(long struct,
@Nullable
AIVector3D.Buffer value)
mNormals.public static void nmTangents(long struct,
@Nullable
AIVector3D.Buffer value)
mTangents.public static void nmBitangents(long struct,
@Nullable
AIVector3D.Buffer value)
mBitangents.public static void nmColors(long struct,
org.lwjgl.PointerBuffer value)
mColors.public static void nmColors(long struct,
int index,
@Nullable
AIColor4D.Buffer value)
mColors.public static void nmTextureCoords(long struct,
org.lwjgl.PointerBuffer value)
mTextureCoords.public static void nmTextureCoords(long struct,
int index,
@Nullable
AIVector3D.Buffer value)
mTextureCoords.public static void nmNumUVComponents(long struct,
java.nio.IntBuffer value)
mNumUVComponents.public static void nmNumUVComponents(long struct,
int index,
int value)
mNumUVComponents.public static void nmFaces(long struct,
AIFace.Buffer value)
mFaces.public static void nmNumBones(long struct,
int value)
mNumBones field of the specified struct.public static void nmBones(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
mBones.public static void nmMaterialIndex(long struct,
int value)
mMaterialIndex.public static void nmNumAnimMeshes(long struct,
int value)
mNumAnimMeshes field of the specified struct.public static void nmAnimMeshes(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
mAnimMeshes.public static void nmMethod(long struct,
int value)
mMethod.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.