Class AIMesh
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.assimp.AIMesh
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class AIMesh extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceA mesh represents a geometry or model with a single material.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 coordinates 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.
Layout
struct aiMesh { unsigned intmPrimitiveTypes(); unsigned intmNumVertices(); unsigned intmNumFaces();struct aiVector3D*mVertices();struct aiVector3D*mNormals();struct aiVector3D*mTangents();struct aiVector3D*mBitangents();struct aiColor4D*mColors()[AI_MAX_NUMBER_OF_COLOR_SETS];struct aiVector3D*mTextureCoords()[AI_MAX_NUMBER_OF_TEXTURECOORDS]; unsigned intmNumUVComponents()[AI_MAX_NUMBER_OF_TEXTURECOORDS];struct aiFace*mFaces(); unsigned intmNumBones();struct aiBone**mBones(); unsigned intmMaterialIndex();struct aiStringmName(); unsigned intmNumAnimMeshes();struct aiAnimMesh**mAnimMeshes(); unsigned intmMethod();struct aiAABBmAABB();struct aiString**mTextureCoordsNames(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAIMesh.BufferAn array ofAIMeshstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intMAABB
MANIMMESHES
MBITANGENTS
MBONES
MCOLORS
MFACES
MMATERIALINDEX
MMETHOD
MNAME
MNORMALS
MNUMANIMMESHES
MNUMBONES
MNUMFACES
MNUMUVCOMPONENTS
MNUMVERTICES
MPRIMITIVETYPES
MTANGENTS
MTEXTURECOORDS
MTEXTURECOORDSNAMES
MVERTICESThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description AIMesh(java.nio.ByteBuffer container)Creates aAIMeshinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static AIMeshcalloc()Returns a newAIMeshinstance allocated withmemCalloc.static AIMesh.Buffercalloc(int capacity)Returns a newAIMesh.Bufferinstance allocated withmemCalloc.static AIMesh.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMesh.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshcalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMeshinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshcallocStack()Deprecated.static AIMesh.BuffercallocStack(int capacity)Deprecated.static AIMesh.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMeshcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static AIMeshcreate()Returns a newAIMeshinstance allocated withBufferUtils.static AIMesh.Buffercreate(int capacity)Returns a newAIMesh.Bufferinstance allocated withBufferUtils.static AIMeshcreate(long address)Returns a newAIMeshinstance for the specified memory address.static AIMesh.Buffercreate(long address, int capacity)Create aAIMesh.Bufferinstance at the specified memory.static AIMeshcreateSafe(long address)static AIMesh.BuffercreateSafe(long address, int capacity)AIAABBmAABB()the bounding boxAIMeshmAABB(java.util.function.Consumer<AIAABB> consumer)Passes themAABB()field to the specifiedConsumer.AIMeshmAABB(AIAABB value)static AIMeshmalloc()Returns a newAIMeshinstance allocated withmemAlloc.static AIMesh.Buffermalloc(int capacity)Returns a newAIMesh.Bufferinstance allocated withmemAlloc.static AIMesh.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMesh.Bufferinstance allocated on the specifiedMemoryStack.static AIMeshmalloc(org.lwjgl.system.MemoryStack stack)Returns a newAIMeshinstance allocated on the specifiedMemoryStack.static AIMeshmallocStack()Deprecated.static AIMesh.BuffermallocStack(int capacity)Deprecated.static AIMesh.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static AIMeshmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.org.lwjgl.PointerBuffermAnimMeshes()Attachment meshes for this mesh, for vertex-based animation.AIMeshmAnimMeshes(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto themAnimMeshes()field.AIVector3D.BuffermBitangents()Vertex bitangents.AIMeshmBitangents(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themBitangents()field.org.lwjgl.PointerBuffermBones()The bones of this mesh.AIMeshmBones(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto themBones()field.org.lwjgl.PointerBuffermColors()Vertex color sets.AIColor4D.BuffermColors(int index)Vertex color sets.AIMeshmColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)AIMeshmColors(int index, AIColor4D.Buffer value)Copies the address of the specifiedAIColor4D.Bufferat the specified index of themColors()field.AIMeshmColors(org.lwjgl.PointerBuffer value)Copies the specifiedPointerBufferto themColors()field.AIFace.BuffermFaces()The faces the mesh is constructed from.AIMeshmFaces(AIFace.Buffer value)Sets the address of the specifiedAIFace.Bufferto themFaces()field.intmMaterialIndex()The material used by this mesh.AIMeshmMaterialIndex(int value)Sets the specified value to themMaterialIndex()field.intmMethod()Method of morphing when anim-meshes are specified.AIMeshmMethod(int value)Sets the specified value to themMethod()field.AIStringmName()Name of the mesh.AIMeshmName(java.util.function.Consumer<AIString> consumer)Passes themName()field to the specifiedConsumer.AIMeshmName(AIString value)AIVector3D.BuffermNormals()Vertex normals.AIMeshmNormals(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themNormals()field.intmNumAnimMeshes()The number of attachment meshes.intmNumBones()The number of bones this mesh contains.intmNumFaces()The number of primitives (triangles, polygons, lines) in this mesh.java.nio.IntBuffermNumUVComponents()Specifies the number of components for a given UV channel.intmNumUVComponents(int index)Specifies the number of components for a given UV channel.AIMeshmNumUVComponents(int index, int value)Sets the specified value at the specified index of themNumUVComponents()field.AIMeshmNumUVComponents(java.nio.IntBuffer value)Copies the specifiedIntBufferto themNumUVComponents()field.intmNumVertices()The number of vertices in this mesh.AIMeshmNumVertices(int value)Sets the specified value to themNumVertices()field.intmPrimitiveTypes()Bitwise combination of the members of theaiPrimitiveTypeenum.AIMeshmPrimitiveTypes(int value)Sets the specified value to themPrimitiveTypes()field.AIVector3D.BuffermTangents()Vertex tangents.AIMeshmTangents(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themTangents()field.org.lwjgl.PointerBuffermTextureCoords()Vertex texture coordinates, also known as UV channels.AIVector3D.BuffermTextureCoords(int index)Vertex texture coordinates, also known as UV channels.AIMeshmTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)AIMeshmTextureCoords(int index, AIVector3D.Buffer value)Copies the address of the specifiedAIVector3D.Bufferat the specified index of themTextureCoords()field.AIMeshmTextureCoords(org.lwjgl.PointerBuffer value)Copies the specifiedPointerBufferto themTextureCoords()field.org.lwjgl.PointerBuffermTextureCoordsNames()Vertex UV stream names.AIMeshmTextureCoordsNames(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto themTextureCoordsNames()field.AIVector3D.BuffermVertices()Vertex positions.AIMeshmVertices(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themVertices()field.static AIAABBnmAABB(long struct)Unsafe version ofmAABB().static voidnmAABB(long struct, AIAABB value)Unsafe version ofmAABB.static org.lwjgl.PointerBuffernmAnimMeshes(long struct)Unsafe version ofmAnimMeshes.static voidnmAnimMeshes(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofmAnimMeshes.static AIVector3D.BuffernmBitangents(long struct)Unsafe version ofmBitangents().static voidnmBitangents(long struct, AIVector3D.Buffer value)Unsafe version ofmBitangents.static org.lwjgl.PointerBuffernmBones(long struct)Unsafe version ofmBones.static voidnmBones(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofmBones.static org.lwjgl.PointerBuffernmColors(long struct)Unsafe version ofmColors().static AIColor4D.BuffernmColors(long struct, int index)Unsafe version ofmColors.static voidnmColors(long struct, int index, AIColor4D.Buffer value)Unsafe version ofmColors.static voidnmColors(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofmColors.static AIFace.BuffernmFaces(long struct)Unsafe version ofmFaces().static voidnmFaces(long struct, AIFace.Buffer value)Unsafe version ofmFaces.static intnmMaterialIndex(long struct)Unsafe version ofmMaterialIndex().static voidnmMaterialIndex(long struct, int value)Unsafe version ofmMaterialIndex.static intnmMethod(long struct)Unsafe version ofmMethod().static voidnmMethod(long struct, int value)Unsafe version ofmMethod.static AIStringnmName(long struct)Unsafe version ofmName().static voidnmName(long struct, AIString value)Unsafe version ofmName.static AIVector3D.BuffernmNormals(long struct)Unsafe version ofmNormals().static voidnmNormals(long struct, AIVector3D.Buffer value)Unsafe version ofmNormals.static intnmNumAnimMeshes(long struct)Unsafe version ofmNumAnimMeshes().static voidnmNumAnimMeshes(long struct, int value)Sets the specified value to themNumAnimMeshesfield of the specifiedstruct.static intnmNumBones(long struct)Unsafe version ofmNumBones().static voidnmNumBones(long struct, int value)Sets the specified value to themNumBonesfield of the specifiedstruct.static intnmNumFaces(long struct)Unsafe version ofmNumFaces().static voidnmNumFaces(long struct, int value)Sets the specified value to themNumFacesfield of the specifiedstruct.static java.nio.IntBuffernmNumUVComponents(long struct)Unsafe version ofmNumUVComponents().static intnmNumUVComponents(long struct, int index)Unsafe version ofmNumUVComponents.static voidnmNumUVComponents(long struct, int index, int value)Unsafe version ofmNumUVComponents.static voidnmNumUVComponents(long struct, java.nio.IntBuffer value)Unsafe version ofmNumUVComponents.static intnmNumVertices(long struct)Unsafe version ofmNumVertices().static voidnmNumVertices(long struct, int value)Sets the specified value to themNumVerticesfield of the specifiedstruct.static intnmPrimitiveTypes(long struct)Unsafe version ofmPrimitiveTypes().static voidnmPrimitiveTypes(long struct, int value)Unsafe version ofmPrimitiveTypes.static AIVector3D.BuffernmTangents(long struct)Unsafe version ofmTangents().static voidnmTangents(long struct, AIVector3D.Buffer value)Unsafe version ofmTangents.static org.lwjgl.PointerBuffernmTextureCoords(long struct)Unsafe version ofmTextureCoords().static AIVector3D.BuffernmTextureCoords(long struct, int index)Unsafe version ofmTextureCoords.static voidnmTextureCoords(long struct, int index, AIVector3D.Buffer value)Unsafe version ofmTextureCoords.static voidnmTextureCoords(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofmTextureCoords.static org.lwjgl.PointerBuffernmTextureCoordsNames(long struct)Unsafe version ofmTextureCoordsNames.static voidnmTextureCoordsNames(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofmTextureCoordsNames.static AIVector3D.BuffernmVertices(long struct)Unsafe version ofmVertices().static voidnmVertices(long struct, AIVector3D.Buffer value)Unsafe version ofmVertices.AIMeshset(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, org.lwjgl.PointerBuffer mTextureCoordsNames)Initializes this struct with the specified values.AIMeshset(AIMesh src)Copies the specified struct data to this struct.intsizeof()static voidvalidate(long struct)Validates pointer members that should not beNULL.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
MPRIMITIVETYPES, MNUMVERTICES, MNUMFACES, MVERTICES, MNORMALS, MTANGENTS, MBITANGENTS, MCOLORS, MTEXTURECOORDS, MNUMUVCOMPONENTS, MFACES, MNUMBONES, MBONES, MMATERIALINDEX, MNAME, MNUMANIMMESHES, MANIMMESHES, MMETHOD, MAABB, MTEXTURECOORDSNAMES
The struct member offsets.
-
-
Constructor Detail
-
AIMesh
public AIMesh(java.nio.ByteBuffer container)
Creates aAIMeshinstance at the current position of the specifiedByteBuffercontainer. 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.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
mPrimitiveTypes
public int mPrimitiveTypes()
Bitwise combination of the members of theaiPrimitiveTypeenum. 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_POINTPrimitiveType_LINEPrimitiveType_TRIANGLEPrimitiveType_POLYGONPrimitiveType_NGONEncodingFlag
-
mNumVertices
public int 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 isAssimp.AI_MAX_VERTICES.
-
mNumFaces
public int mNumFaces()
The number of primitives (triangles, polygons, lines) in this mesh. This is also the size of themFacesarray. The maximum value for this member isAssimp.AI_MAX_FACES.
-
mVertices
public AIVector3D.Buffer mVertices()
Vertex positions. This array is always present in a mesh. The array ismNumVerticesin size.
-
mNormals
@Nullable public AIVector3D.Buffer mNormals()
Vertex normals.The array contains normalized vectors,
NULLif not present. The array ismNumVerticesin 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 toqNaN.Note
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
@Nullable public AIVector3D.Buffer mTangents()
Vertex tangents.The tangent of a vertex points in the direction of the positive X texture axis. The array contains normalized vectors,
NULLif not present. The array ismNumVerticesin 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 toqNaN.Note
If the mesh contains tangents, it automatically also contains bitangents.
-
mBitangents
@Nullable public AIVector3D.Buffer mBitangents()
Vertex bitangents.The bitangent of a vertex points in the direction of the positive Y texture axis. The array contains normalized vectors,
NULLif not present. The array ismNumVerticesin size.Note
If the mesh contains tangents, it automatically also contains bitangents.
-
mColors
public org.lwjgl.PointerBuffer mColors() @Nullable public AIColor4D.Buffer mColors(int index)
Vertex color sets. A mesh may contain 0 toAssimp.AI_MAX_NUMBER_OF_COLOR_SETSvertex colors per vertex.NULLif not present. Each array ismNumVerticesin size if present.
-
mTextureCoords
public org.lwjgl.PointerBuffer mTextureCoords() @Nullable public AIVector3D.Buffer mTextureCoords(int index)
Vertex texture coordinates, also known as UV channels. A mesh may contain 0 toAssimp.AI_MAX_NUMBER_OF_TEXTURECOORDSper vertex.NULLif not present. The array ismNumVerticesin size.
-
mNumUVComponents
public java.nio.IntBuffer mNumUVComponents() public int mNumUVComponents(int index)
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 componentp.zofmTextureCoords[n][p]is set to 0.0f. If the value is 1 for a given channel,p.yis set to 0.0f, too.Note: 4D coordinates are not supported.
-
mFaces
public AIFace.Buffer 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 inmNumFaces. If theAssimp.AI_SCENE_FLAGS_NON_VERBOSE_FORMATis NOT set each face references an unique set of vertices.
-
mNumBones
public int mNumBones()
The number of bones this mesh contains. Can be 0, in which case themBonesarray isNULL.
-
mBones
@Nullable public org.lwjgl.PointerBuffer 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
public int 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
public AIString 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:
- some formats name nodes and meshes independently.
- importers tend to split meshes up to meet the one-material-per-mesh requirement. Assigning the same (dummy) name to each of the result meshes aids the caller at recovering the original mesh partitioning.
- vertex animations refer to meshes by their names.
-
mNumAnimMeshes
public int mNumAnimMeshes()
The number of attachment meshes. Note! Currently only works with Collada loader.
-
mAnimMeshes
@Nullable public org.lwjgl.PointerBuffer 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
public int mMethod()
Method of morphing when anim-meshes are specified. One of:MorphingMethod_VERTEX_BLENDMorphingMethod_MORPH_NORMALIZEDMorphingMethod_MORPH_RELATIVE
-
mAABB
public AIAABB mAABB()
the bounding box
-
mTextureCoordsNames
@Nullable public org.lwjgl.PointerBuffer mTextureCoordsNames()
Vertex UV stream names. Pointer to array of sizeAssimp.AI_MAX_NUMBER_OF_TEXTURECOORDS.
-
mPrimitiveTypes
public AIMesh mPrimitiveTypes(int value)
Sets the specified value to themPrimitiveTypes()field.
-
mNumVertices
public AIMesh mNumVertices(int value)
Sets the specified value to themNumVertices()field.
-
mVertices
public AIMesh mVertices(AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themVertices()field.
-
mNormals
public AIMesh mNormals(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themNormals()field.
-
mTangents
public AIMesh mTangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themTangents()field.
-
mBitangents
public AIMesh mBitangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themBitangents()field.
-
mColors
public AIMesh mColors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto themColors()field.
-
mColors
public AIMesh mColors(int index, @Nullable AIColor4D.Buffer value)
Copies the address of the specifiedAIColor4D.Bufferat the specified index of themColors()field.
-
mColors
public AIMesh mColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)
-
mTextureCoords
public AIMesh mTextureCoords(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto themTextureCoords()field.
-
mTextureCoords
public AIMesh mTextureCoords(int index, @Nullable AIVector3D.Buffer value)
Copies the address of the specifiedAIVector3D.Bufferat the specified index of themTextureCoords()field.
-
mTextureCoords
public AIMesh mTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)
-
mNumUVComponents
public AIMesh mNumUVComponents(java.nio.IntBuffer value)
Copies the specifiedIntBufferto themNumUVComponents()field.
-
mNumUVComponents
public AIMesh mNumUVComponents(int index, int value)
Sets the specified value at the specified index of themNumUVComponents()field.
-
mFaces
public AIMesh mFaces(AIFace.Buffer value)
Sets the address of the specifiedAIFace.Bufferto themFaces()field.
-
mBones
public AIMesh mBones(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto themBones()field.
-
mMaterialIndex
public AIMesh mMaterialIndex(int value)
Sets the specified value to themMaterialIndex()field.
-
mName
public AIMesh mName(java.util.function.Consumer<AIString> consumer)
Passes themName()field to the specifiedConsumer.
-
mAnimMeshes
public AIMesh mAnimMeshes(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto themAnimMeshes()field.
-
mAABB
public AIMesh mAABB(java.util.function.Consumer<AIAABB> consumer)
Passes themAABB()field to the specifiedConsumer.
-
mTextureCoordsNames
public AIMesh mTextureCoordsNames(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto themTextureCoordsNames()field.
-
set
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, @Nullable org.lwjgl.PointerBuffer mTextureCoordsNames)
Initializes this struct with the specified values.
-
set
public AIMesh set(AIMesh src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static AIMesh malloc()
Returns a newAIMeshinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static AIMesh calloc()
Returns a newAIMeshinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static AIMesh create()
Returns a newAIMeshinstance allocated withBufferUtils.
-
create
public static AIMesh create(long address)
Returns a newAIMeshinstance for the specified memory address.
-
createSafe
@Nullable public static AIMesh createSafe(long address)
-
malloc
public static AIMesh.Buffer malloc(int capacity)
Returns a newAIMesh.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static AIMesh.Buffer calloc(int capacity)
Returns a newAIMesh.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static AIMesh.Buffer create(int capacity)
Returns a newAIMesh.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static AIMesh.Buffer create(long address, int capacity)
Create aAIMesh.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static AIMesh.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static AIMesh mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMesh callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMesh mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static AIMesh callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMesh.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AIMesh.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static AIMesh.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static AIMesh.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static AIMesh malloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static AIMesh calloc(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static AIMesh.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMesh.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static AIMesh.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newAIMesh.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nmPrimitiveTypes
public static int nmPrimitiveTypes(long struct)
Unsafe version ofmPrimitiveTypes().
-
nmNumVertices
public static int nmNumVertices(long struct)
Unsafe version ofmNumVertices().
-
nmNumFaces
public static int nmNumFaces(long struct)
Unsafe version ofmNumFaces().
-
nmVertices
public static AIVector3D.Buffer nmVertices(long struct)
Unsafe version ofmVertices().
-
nmNormals
@Nullable public static AIVector3D.Buffer nmNormals(long struct)
Unsafe version ofmNormals().
-
nmTangents
@Nullable public static AIVector3D.Buffer nmTangents(long struct)
Unsafe version ofmTangents().
-
nmBitangents
@Nullable public static AIVector3D.Buffer nmBitangents(long struct)
Unsafe version ofmBitangents().
-
nmColors
public static org.lwjgl.PointerBuffer nmColors(long struct)
Unsafe version ofmColors().
-
nmColors
@Nullable public static AIColor4D.Buffer nmColors(long struct, int index)
Unsafe version ofmColors.
-
nmTextureCoords
public static org.lwjgl.PointerBuffer nmTextureCoords(long struct)
Unsafe version ofmTextureCoords().
-
nmTextureCoords
@Nullable public static AIVector3D.Buffer nmTextureCoords(long struct, int index)
Unsafe version ofmTextureCoords.
-
nmNumUVComponents
public static java.nio.IntBuffer nmNumUVComponents(long struct)
Unsafe version ofmNumUVComponents().
-
nmNumUVComponents
public static int nmNumUVComponents(long struct, int index)Unsafe version ofmNumUVComponents.
-
nmFaces
public static AIFace.Buffer nmFaces(long struct)
Unsafe version ofmFaces().
-
nmNumBones
public static int nmNumBones(long struct)
Unsafe version ofmNumBones().
-
nmBones
@Nullable public static org.lwjgl.PointerBuffer nmBones(long struct)
Unsafe version ofmBones.
-
nmMaterialIndex
public static int nmMaterialIndex(long struct)
Unsafe version ofmMaterialIndex().
-
nmNumAnimMeshes
public static int nmNumAnimMeshes(long struct)
Unsafe version ofmNumAnimMeshes().
-
nmAnimMeshes
@Nullable public static org.lwjgl.PointerBuffer nmAnimMeshes(long struct)
Unsafe version ofmAnimMeshes.
-
nmMethod
public static int nmMethod(long struct)
Unsafe version ofmMethod().
-
nmTextureCoordsNames
@Nullable public static org.lwjgl.PointerBuffer nmTextureCoordsNames(long struct)
Unsafe version ofmTextureCoordsNames.
-
nmPrimitiveTypes
public static void nmPrimitiveTypes(long struct, int value)Unsafe version ofmPrimitiveTypes.
-
nmNumVertices
public static void nmNumVertices(long struct, int value)Sets the specified value to themNumVerticesfield of the specifiedstruct.
-
nmNumFaces
public static void nmNumFaces(long struct, int value)Sets the specified value to themNumFacesfield of the specifiedstruct.
-
nmVertices
public static void nmVertices(long struct, AIVector3D.Buffer value)Unsafe version ofmVertices.
-
nmNormals
public static void nmNormals(long struct, @Nullable AIVector3D.Buffer value)Unsafe version ofmNormals.
-
nmTangents
public static void nmTangents(long struct, @Nullable AIVector3D.Buffer value)Unsafe version ofmTangents.
-
nmBitangents
public static void nmBitangents(long struct, @Nullable AIVector3D.Buffer value)Unsafe version ofmBitangents.
-
nmColors
public static void nmColors(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofmColors.
-
nmColors
public static void nmColors(long struct, int index, @Nullable AIColor4D.Buffer value)Unsafe version ofmColors.
-
nmTextureCoords
public static void nmTextureCoords(long struct, org.lwjgl.PointerBuffer value)Unsafe version ofmTextureCoords.
-
nmTextureCoords
public static void nmTextureCoords(long struct, int index, @Nullable AIVector3D.Buffer value)Unsafe version ofmTextureCoords.
-
nmNumUVComponents
public static void nmNumUVComponents(long struct, java.nio.IntBuffer value)Unsafe version ofmNumUVComponents.
-
nmNumUVComponents
public static void nmNumUVComponents(long struct, int index, int value)Unsafe version ofmNumUVComponents.
-
nmFaces
public static void nmFaces(long struct, AIFace.Buffer value)Unsafe version ofmFaces.
-
nmNumBones
public static void nmNumBones(long struct, int value)Sets the specified value to themNumBonesfield of the specifiedstruct.
-
nmBones
public static void nmBones(long struct, @Nullable org.lwjgl.PointerBuffer value)Unsafe version ofmBones.
-
nmMaterialIndex
public static void nmMaterialIndex(long struct, int value)Unsafe version ofmMaterialIndex.
-
nmNumAnimMeshes
public static void nmNumAnimMeshes(long struct, int value)Sets the specified value to themNumAnimMeshesfield of the specifiedstruct.
-
nmAnimMeshes
public static void nmAnimMeshes(long struct, @Nullable org.lwjgl.PointerBuffer value)Unsafe version ofmAnimMeshes.
-
nmMethod
public static void nmMethod(long struct, int value)Unsafe version ofmMethod.
-
nmTextureCoordsNames
public static void nmTextureCoordsNames(long struct, @Nullable org.lwjgl.PointerBuffer value)Unsafe version ofmTextureCoordsNames.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
-