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 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.
Member documentation
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_POLYGONmNumVertices– 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– 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– Vertex positions. This array is always present in a mesh. The array ismNumVerticesin size.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– 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– 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[Assimp.AI_MAX_NUMBER_OF_COLOR_SETS]– 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[Assimp.AI_MAX_NUMBER_OF_TEXTURECOORDS]– Vertex texture coords, 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[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 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.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– The number of bones this mesh contains. Can be 0, in which case themBonesarray isNULL.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:
- 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– 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 whenanimeshesare specified. One of:MorphingMethod_VERTEX_BLENDMorphingMethod_MORPH_NORMALIZEDMorphingMethod_MORPH_RELATIVE
Layout
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 aiStringmName; unsigned int mNumAnimMeshes;struct aiAnimMesh** mAnimMeshes; unsigned int mMethod;struct aiAABBmAABB; }
-
-
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
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 Modifier and Type Method Description static AIMeshcalloc()Returns a newAIMeshinstance allocated withmemCalloc.static AIMesh.Buffercalloc(int capacity)Returns a newAIMesh.Bufferinstance allocated withmemCalloc.static AIMeshcallocStack()Returns a newAIMeshinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AIMesh.BuffercallocStack(int capacity)Returns a newAIMesh.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static AIMesh.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMesh.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAIMeshinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns aAIAABBview of themAABBfield.AIMeshmAABB(java.util.function.Consumer<AIAABB> consumer)Passes themAABBfield to the specifiedConsumer.AIMeshmAABB(AIAABB value)Copies the specifiedAIAABBto themAABBfield.static AIMeshmalloc()Returns a newAIMeshinstance allocated withmemAlloc.static AIMesh.Buffermalloc(int capacity)Returns a newAIMesh.Bufferinstance allocated withmemAlloc.static AIMeshmallocStack()Returns a newAIMeshinstance allocated on the thread-localMemoryStack.static AIMesh.BuffermallocStack(int capacity)Returns a newAIMesh.Bufferinstance allocated on the thread-localMemoryStack.static AIMesh.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newAIMesh.Bufferinstance allocated on the specifiedMemoryStack.static AIMeshmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newAIMeshinstance allocated on the specifiedMemoryStack.org.lwjgl.PointerBuffermAnimMeshes()Returns aPointerBufferview of the data pointed to by themAnimMeshesfield.AIMeshmAnimMeshes(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto themAnimMeshesfield.AIVector3D.BuffermBitangents()Returns aAIVector3D.Bufferview of the struct array pointed to by themBitangentsfield.AIMeshmBitangents(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themBitangentsfield.org.lwjgl.PointerBuffermBones()Returns aPointerBufferview of the data pointed to by themBonesfield.AIMeshmBones(org.lwjgl.PointerBuffer value)Sets the address of the specifiedPointerBufferto themBonesfield.org.lwjgl.PointerBuffermColors()Returns aPointerBufferview of themColorsfield.AIColor4D.BuffermColors(int index)Returns aAIColor4Dview of the pointer at the specified index of themColorsfield.AIMeshmColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)Passes the element atindexof themColorsfield to the specifiedConsumer.AIMeshmColors(int index, AIColor4D.Buffer value)Copies the address of the specifiedAIColor4Dat the specified index of themColorsfield.AIMeshmColors(org.lwjgl.PointerBuffer value)Copies the specifiedPointerBufferto themColorsfield.AIFace.BuffermFaces()Returns aAIFace.Bufferview of the struct array pointed to by themFacesfield.AIMeshmFaces(AIFace.Buffer value)Sets the address of the specifiedAIFace.Bufferto themFacesfield.intmMaterialIndex()Returns the value of themMaterialIndexfield.AIMeshmMaterialIndex(int value)Sets the specified value to themMaterialIndexfield.intmMethod()Returns the value of themMethodfield.AIMeshmMethod(int value)Sets the specified value to themMethodfield.AIStringmName()Returns aAIStringview of themNamefield.AIMeshmName(java.util.function.Consumer<AIString> consumer)Passes themNamefield to the specifiedConsumer.AIMeshmName(AIString value)Copies the specifiedAIStringto themNamefield.AIVector3D.BuffermNormals()Returns aAIVector3D.Bufferview of the struct array pointed to by themNormalsfield.AIMeshmNormals(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themNormalsfield.intmNumAnimMeshes()Returns the value of themNumAnimMeshesfield.intmNumBones()Returns the value of themNumBonesfield.intmNumFaces()Returns the value of themNumFacesfield.java.nio.IntBuffermNumUVComponents()Returns aIntBufferview of themNumUVComponentsfield.intmNumUVComponents(int index)Returns the value at the specified index of themNumUVComponentsfield.AIMeshmNumUVComponents(int index, int value)Sets the specified value at the specified index of themNumUVComponentsfield.AIMeshmNumUVComponents(java.nio.IntBuffer value)Copies the specifiedIntBufferto themNumUVComponentsfield.intmNumVertices()Returns the value of themNumVerticesfield.AIMeshmNumVertices(int value)Sets the specified value to themNumVerticesfield.intmPrimitiveTypes()Returns the value of themPrimitiveTypesfield.AIMeshmPrimitiveTypes(int value)Sets the specified value to themPrimitiveTypesfield.AIVector3D.BuffermTangents()Returns aAIVector3D.Bufferview of the struct array pointed to by themTangentsfield.AIMeshmTangents(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themTangentsfield.org.lwjgl.PointerBuffermTextureCoords()Returns aPointerBufferview of themTextureCoordsfield.AIVector3D.BuffermTextureCoords(int index)Returns aAIVector3Dview of the pointer at the specified index of themTextureCoordsfield.AIMeshmTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)Passes the element atindexof themTextureCoordsfield to the specifiedConsumer.AIMeshmTextureCoords(int index, AIVector3D.Buffer value)Copies the address of the specifiedAIVector3Dat the specified index of themTextureCoordsfield.AIMeshmTextureCoords(org.lwjgl.PointerBuffer value)Copies the specifiedPointerBufferto themTextureCoordsfield.AIVector3D.BuffermVertices()Returns aAIVector3D.Bufferview of the struct array pointed to by themVerticesfield.AIMeshmVertices(AIVector3D.Buffer value)Sets the address of the specifiedAIVector3D.Bufferto themVerticesfield.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 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)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.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.
-
-
-
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
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()
Returns the value of themPrimitiveTypesfield.
-
mNumVertices
public int mNumVertices()
Returns the value of themNumVerticesfield.
-
mNumFaces
public int mNumFaces()
Returns the value of themNumFacesfield.
-
mVertices
public AIVector3D.Buffer mVertices()
Returns aAIVector3D.Bufferview of the struct array pointed to by themVerticesfield.
-
mNormals
@Nullable public AIVector3D.Buffer mNormals()
Returns aAIVector3D.Bufferview of the struct array pointed to by themNormalsfield.
-
mTangents
@Nullable public AIVector3D.Buffer mTangents()
Returns aAIVector3D.Bufferview of the struct array pointed to by themTangentsfield.
-
mBitangents
@Nullable public AIVector3D.Buffer mBitangents()
Returns aAIVector3D.Bufferview of the struct array pointed to by themBitangentsfield.
-
mColors
public org.lwjgl.PointerBuffer mColors()
Returns aPointerBufferview of themColorsfield.
-
mColors
@Nullable public AIColor4D.Buffer mColors(int index)
Returns aAIColor4Dview of the pointer at the specified index of themColorsfield.
-
mTextureCoords
public org.lwjgl.PointerBuffer mTextureCoords()
Returns aPointerBufferview of themTextureCoordsfield.
-
mTextureCoords
@Nullable public AIVector3D.Buffer mTextureCoords(int index)
Returns aAIVector3Dview of the pointer at the specified index of themTextureCoordsfield.
-
mNumUVComponents
public java.nio.IntBuffer mNumUVComponents()
Returns aIntBufferview of themNumUVComponentsfield.
-
mNumUVComponents
public int mNumUVComponents(int index)
Returns the value at the specified index of themNumUVComponentsfield.
-
mFaces
public AIFace.Buffer mFaces()
Returns aAIFace.Bufferview of the struct array pointed to by themFacesfield.
-
mNumBones
public int mNumBones()
Returns the value of themNumBonesfield.
-
mBones
@Nullable public org.lwjgl.PointerBuffer mBones()
Returns aPointerBufferview of the data pointed to by themBonesfield.
-
mMaterialIndex
public int mMaterialIndex()
Returns the value of themMaterialIndexfield.
-
mNumAnimMeshes
public int mNumAnimMeshes()
Returns the value of themNumAnimMeshesfield.
-
mAnimMeshes
@Nullable public org.lwjgl.PointerBuffer mAnimMeshes()
Returns aPointerBufferview of the data pointed to by themAnimMeshesfield.
-
mMethod
public int mMethod()
Returns the value of themMethodfield.
-
mPrimitiveTypes
public AIMesh mPrimitiveTypes(int value)
Sets the specified value to themPrimitiveTypesfield.
-
mNumVertices
public AIMesh mNumVertices(int value)
Sets the specified value to themNumVerticesfield.
-
mVertices
public AIMesh mVertices(AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themVerticesfield.
-
mNormals
public AIMesh mNormals(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themNormalsfield.
-
mTangents
public AIMesh mTangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themTangentsfield.
-
mBitangents
public AIMesh mBitangents(@Nullable AIVector3D.Buffer value)
Sets the address of the specifiedAIVector3D.Bufferto themBitangentsfield.
-
mColors
public AIMesh mColors(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto themColorsfield.
-
mColors
public AIMesh mColors(int index, @Nullable AIColor4D.Buffer value)
Copies the address of the specifiedAIColor4Dat the specified index of themColorsfield.
-
mColors
public AIMesh mColors(int index, java.util.function.Consumer<AIColor4D.Buffer> consumer)
Passes the element atindexof themColorsfield to the specifiedConsumer.
-
mTextureCoords
public AIMesh mTextureCoords(org.lwjgl.PointerBuffer value)
Copies the specifiedPointerBufferto themTextureCoordsfield.
-
mTextureCoords
public AIMesh mTextureCoords(int index, @Nullable AIVector3D.Buffer value)
Copies the address of the specifiedAIVector3Dat the specified index of themTextureCoordsfield.
-
mTextureCoords
public AIMesh mTextureCoords(int index, java.util.function.Consumer<AIVector3D.Buffer> consumer)
Passes the element atindexof themTextureCoordsfield to the specifiedConsumer.
-
mNumUVComponents
public AIMesh mNumUVComponents(java.nio.IntBuffer value)
Copies the specifiedIntBufferto themNumUVComponentsfield.
-
mNumUVComponents
public AIMesh mNumUVComponents(int index, int value)
Sets the specified value at the specified index of themNumUVComponentsfield.
-
mFaces
public AIMesh mFaces(AIFace.Buffer value)
Sets the address of the specifiedAIFace.Bufferto themFacesfield.
-
mBones
public AIMesh mBones(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto themBonesfield.
-
mMaterialIndex
public AIMesh mMaterialIndex(int value)
Sets the specified value to themMaterialIndexfield.
-
mName
public AIMesh mName(java.util.function.Consumer<AIString> consumer)
Passes themNamefield to the specifiedConsumer.
-
mAnimMeshes
public AIMesh mAnimMeshes(@Nullable org.lwjgl.PointerBuffer value)
Sets the address of the specifiedPointerBufferto themAnimMeshesfield.
-
mMethod
public AIMesh mMethod(int value)
Sets the specified value to themMethodfield.
-
mAABB
public AIMesh mAABB(java.util.function.Consumer<AIAABB> consumer)
Passes themAABBfield to the specifiedConsumer.
-
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)
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
public static AIMesh mallocStack()
Returns a newAIMeshinstance allocated on the thread-localMemoryStack.
-
callocStack
public static AIMesh callocStack()
Returns a newAIMeshinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static AIMesh mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newAIMeshinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static AIMesh callocStack(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
-
mallocStack
public static AIMesh.Buffer mallocStack(int capacity)
Returns a newAIMesh.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static AIMesh.Buffer callocStack(int capacity)
Returns a newAIMesh.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static AIMesh.Buffer mallocStack(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
-
callocStack
public static AIMesh.Buffer callocStack(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().
-
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.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-
validate
public static void validate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.- Parameters:
array- the struct array to validatecount- the number of structs inarray
-
-