Package org.lwjgl.assimp
Class AIMesh
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
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[AI_MAX_NUMBER_OF_COLOR_SETS];
struct aiVector3D * mTextureCoords[AI_MAX_NUMBER_OF_TEXTURECOORDS];
unsigned int mNumUVComponents[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;
aiMorphingMethod mMethod;
struct aiAABB mAABB;
struct aiString ** mTextureCoordsNames;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionAIMesh(ByteBuffer container) Creates aAIMeshinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIMeshcalloc()Returns a newAIMeshinstance allocated withmemCalloc.static AIMesh.Buffercalloc(int capacity) Returns a newAIMesh.Bufferinstance allocated withmemCalloc.static AIMesh.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIMesh.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshcalloc(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 @Nullable AIMeshcreateSafe(long address) static @Nullable AIMesh.BuffercreateSafe(long address, int capacity) mAABB()Passes themAABBfield to the specifiedConsumer.Copies the specifiedAIAABBto themAABBfield.static AIMeshmalloc()Returns a newAIMeshinstance allocated withmemAlloc.static AIMesh.Buffermalloc(int capacity) Returns a newAIMesh.Bufferinstance allocated withmemAlloc.static AIMesh.Buffermalloc(int capacity, MemoryStack stack) Returns a newAIMesh.Bufferinstance allocated on the specifiedMemoryStack.static AIMeshmalloc(MemoryStack stack) Returns a newAIMeshinstance allocated on the specifiedMemoryStack.@Nullable PointerBuffermAnimMeshes(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themAnimMeshesfield.@Nullable AIVector3D.BuffermBitangents(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Bufferto themBitangentsfield.@Nullable PointerBuffermBones()mBones(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themBonesfield.mColors()@Nullable AIColor4D.BuffermColors(int index) mColors(int index, Consumer<@Nullable AIColor4D.Buffer> consumer) mColors(int index, @Nullable AIColor4D.Buffer value) Copies the address of the specifiedAIColor4D.Bufferat the specified index of themColorsfield.mColors(PointerBuffer value) Copies the specifiedPointerBufferto themColorsfield.mFaces()mFaces(AIFace.Buffer value) Sets the address of the specifiedAIFace.Bufferto themFacesfield.intmMaterialIndex(int value) Sets the specified value to themMaterialIndexfield.intmMethod()mMethod(int value) Sets the specified value to themMethodfield.mName()Passes themNamefield to the specifiedConsumer.Copies the specifiedAIStringto themNamefield.@Nullable AIVector3D.BuffermNormals()mNormals(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Bufferto themNormalsfield.intintintintmNumUVComponents(int index) mNumUVComponents(int index, int value) Sets the specified value at the specified index of themNumUVComponentsfield.mNumUVComponents(IntBuffer value) Copies the specifiedIntBufferto themNumUVComponentsfield.intmNumVertices(int value) Sets the specified value to themNumVerticesfield.intmPrimitiveTypes(int value) Sets the specified value to themPrimitiveTypesfield.@Nullable AIVector3D.BuffermTangents(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Bufferto themTangentsfield.@Nullable AIVector3D.BuffermTextureCoords(int index) mTextureCoords(int index, Consumer<@Nullable AIVector3D.Buffer> consumer) mTextureCoords(int index, @Nullable AIVector3D.Buffer value) Copies the address of the specifiedAIVector3D.Bufferat the specified index of themTextureCoordsfield.mTextureCoords(PointerBuffer value) Copies the specifiedPointerBufferto themTextureCoordsfield.@Nullable PointerBuffermTextureCoordsNames(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themTextureCoordsNamesfield.mVertices(AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Bufferto themVerticesfield.static AIAABBnmAABB(long struct) Unsafe version ofmAABB().static voidUnsafe version ofmAABB.static @Nullable PointerBuffernmAnimMeshes(long struct) Unsafe version ofmAnimMeshes.static voidnmAnimMeshes(long struct, @Nullable PointerBuffer value) Unsafe version ofmAnimMeshes.static @Nullable AIVector3D.BuffernmBitangents(long struct) Unsafe version ofmBitangents().static voidnmBitangents(long struct, @Nullable AIVector3D.Buffer value) Unsafe version ofmBitangents.static @Nullable PointerBuffernmBones(long struct) Unsafe version ofmBones.static voidnmBones(long struct, @Nullable PointerBuffer value) Unsafe version ofmBones.static PointerBuffernmColors(long struct) Unsafe version ofmColors().static @Nullable AIColor4D.BuffernmColors(long struct, int index) Unsafe version ofmColors.static voidnmColors(long struct, int index, @Nullable AIColor4D.Buffer value) Unsafe version ofmColors.static voidnmColors(long struct, 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 voidUnsafe version ofmName.static @Nullable AIVector3D.BuffernmNormals(long struct) Unsafe version ofmNormals().static voidnmNormals(long struct, @Nullable 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 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, 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 @Nullable AIVector3D.BuffernmTangents(long struct) Unsafe version ofmTangents().static voidnmTangents(long struct, @Nullable AIVector3D.Buffer value) Unsafe version ofmTangents.static PointerBuffernmTextureCoords(long struct) Unsafe version ofmTextureCoords().static @Nullable AIVector3D.BuffernmTextureCoords(long struct, int index) Unsafe version ofmTextureCoords.static voidnmTextureCoords(long struct, int index, @Nullable AIVector3D.Buffer value) Unsafe version ofmTextureCoords.static voidnmTextureCoords(long struct, PointerBuffer value) Unsafe version ofmTextureCoords.static @Nullable PointerBuffernmTextureCoordsNames(long struct) Unsafe version ofmTextureCoordsNames.static voidnmTextureCoordsNames(long struct, @Nullable PointerBuffer value) Unsafe version ofmTextureCoordsNames.static AIVector3D.BuffernmVertices(long struct) Unsafe version ofmVertices().static voidnmVertices(long struct, AIVector3D.Buffer value) Unsafe version ofmVertices.set(int mPrimitiveTypes, int mNumVertices, AIVector3D.Buffer mVertices, @Nullable AIVector3D.Buffer mNormals, @Nullable AIVector3D.Buffer mTangents, @Nullable AIVector3D.Buffer mBitangents, PointerBuffer mColors, PointerBuffer mTextureCoords, IntBuffer mNumUVComponents, AIFace.Buffer mFaces, @Nullable PointerBuffer mBones, int mMaterialIndex, AIString mName, @Nullable PointerBuffer mAnimMeshes, int mMethod, AIAABB mAABB, @Nullable PointerBuffer mTextureCoordsNames) Initializes this struct with the specified values.Copies the specified struct data to this struct.intsizeof()Returnssizeof(struct).static voidvalidate(long struct) Validates pointer members that should not beNULL.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
MPRIMITIVETYPES
public static final int MPRIMITIVETYPESThe struct member offsets. -
MNUMVERTICES
public static final int MNUMVERTICESThe struct member offsets. -
MNUMFACES
public static final int MNUMFACESThe struct member offsets. -
MVERTICES
public static final int MVERTICESThe struct member offsets. -
MNORMALS
public static final int MNORMALSThe struct member offsets. -
MTANGENTS
public static final int MTANGENTSThe struct member offsets. -
MBITANGENTS
public static final int MBITANGENTSThe struct member offsets. -
MCOLORS
public static final int MCOLORSThe struct member offsets. -
MTEXTURECOORDS
public static final int MTEXTURECOORDSThe struct member offsets. -
MNUMUVCOMPONENTS
public static final int MNUMUVCOMPONENTSThe struct member offsets. -
MFACES
public static final int MFACESThe struct member offsets. -
MNUMBONES
public static final int MNUMBONESThe struct member offsets. -
MBONES
public static final int MBONESThe struct member offsets. -
MMATERIALINDEX
public static final int MMATERIALINDEXThe struct member offsets. -
MNAME
public static final int MNAMEThe struct member offsets. -
MNUMANIMMESHES
public static final int MNUMANIMMESHESThe struct member offsets. -
MANIMMESHES
public static final int MANIMMESHESThe struct member offsets. -
MMETHOD
public static final int MMETHODThe struct member offsets. -
MAABB
public static final int MAABBThe struct member offsets. -
MTEXTURECOORDSNAMES
public static final int MTEXTURECOORDSNAMESThe struct member offsets.
-
-
Constructor Details
-
AIMesh
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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct). -
mPrimitiveTypes
public int mPrimitiveTypes()- Returns:
- the value of the
mPrimitiveTypesfield.
-
mNumVertices
public int mNumVertices()- Returns:
- the value of the
mNumVerticesfield.
-
mNumFaces
public int mNumFaces()- Returns:
- the value of the
mNumFacesfield.
-
mVertices
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by themVerticesfield.
-
mNormals
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by themNormalsfield.
-
mTangents
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by themTangentsfield.
-
mBitangents
- Returns:
- a
AIVector3D.Bufferview of the struct array pointed to by themBitangentsfield.
-
mColors
- Returns:
- a
PointerBufferview of themColorsfield.
-
mColors
- Returns:
- a
AIColor4Dview of the pointer at the specified index of themColorsfield.
-
mTextureCoords
- Returns:
- a
PointerBufferview of themTextureCoordsfield.
-
mTextureCoords
- Returns:
- a
AIVector3Dview of the pointer at the specified index of themTextureCoordsfield.
-
mNumUVComponents
- Returns:
- a
IntBufferview of themNumUVComponentsfield.
-
mNumUVComponents
public int mNumUVComponents(int index) - Returns:
- the value at the specified index of the
mNumUVComponentsfield.
-
mFaces
- Returns:
- a
AIFace.Bufferview of the struct array pointed to by themFacesfield.
-
mNumBones
public int mNumBones()- Returns:
- the value of the
mNumBonesfield.
-
mBones
- Returns:
- a
PointerBufferview of the data pointed to by themBonesfield.
-
mMaterialIndex
public int mMaterialIndex()- Returns:
- the value of the
mMaterialIndexfield.
-
mName
- Returns:
- a
AIStringview of themNamefield.
-
mNumAnimMeshes
public int mNumAnimMeshes()- Returns:
- the value of the
mNumAnimMeshesfield.
-
mAnimMeshes
- Returns:
- a
PointerBufferview of the data pointed to by themAnimMeshesfield.
-
mMethod
public int mMethod()- Returns:
- the value of the
mMethodfield.
-
mAABB
- Returns:
- a
AIAABBview of themAABBfield.
-
mTextureCoordsNames
- Returns:
- a
PointerBufferview of the data pointed to by themTextureCoordsNamesfield.
-
mPrimitiveTypes
Sets the specified value to themPrimitiveTypesfield. -
mNumVertices
Sets the specified value to themNumVerticesfield. -
mVertices
Sets the address of the specifiedAIVector3D.Bufferto themVerticesfield. -
mNormals
Sets the address of the specifiedAIVector3D.Bufferto themNormalsfield. -
mTangents
Sets the address of the specifiedAIVector3D.Bufferto themTangentsfield. -
mBitangents
Sets the address of the specifiedAIVector3D.Bufferto themBitangentsfield. -
mColors
Copies the specifiedPointerBufferto themColorsfield. -
mColors
Copies the address of the specifiedAIColor4D.Bufferat the specified index of themColorsfield. -
mColors
-
mTextureCoords
Copies the specifiedPointerBufferto themTextureCoordsfield. -
mTextureCoords
Copies the address of the specifiedAIVector3D.Bufferat the specified index of themTextureCoordsfield. -
mTextureCoords
-
mNumUVComponents
Copies the specifiedIntBufferto themNumUVComponentsfield. -
mNumUVComponents
Sets the specified value at the specified index of themNumUVComponentsfield. -
mFaces
Sets the address of the specifiedAIFace.Bufferto themFacesfield. -
mBones
Sets the address of the specifiedPointerBufferto themBonesfield. -
mMaterialIndex
Sets the specified value to themMaterialIndexfield. -
mName
Copies the specifiedAIStringto themNamefield. -
mName
Passes themNamefield to the specifiedConsumer. -
mAnimMeshes
Sets the address of the specifiedPointerBufferto themAnimMeshesfield. -
mMethod
Sets the specified value to themMethodfield. -
mAABB
Copies the specifiedAIAABBto themAABBfield. -
mAABB
Passes themAABBfield to the specifiedConsumer. -
mTextureCoordsNames
Sets the address of the specifiedPointerBufferto themTextureCoordsNamesfield. -
set
public AIMesh set(int mPrimitiveTypes, int mNumVertices, AIVector3D.Buffer mVertices, @Nullable AIVector3D.Buffer mNormals, @Nullable AIVector3D.Buffer mTangents, @Nullable AIVector3D.Buffer mBitangents, PointerBuffer mColors, PointerBuffer mTextureCoords, IntBuffer mNumUVComponents, AIFace.Buffer mFaces, @Nullable PointerBuffer mBones, int mMaterialIndex, AIString mName, @Nullable PointerBuffer mAnimMeshes, int mMethod, AIAABB mAABB, @Nullable PointerBuffer mTextureCoordsNames) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newAIMeshinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIMeshinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIMeshinstance allocated withBufferUtils. -
create
Returns a newAIMeshinstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIMesh.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIMesh.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIMesh.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIMesh.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newAIMeshinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIMeshinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIMesh.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIMesh.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
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
Unsafe version ofmVertices(). -
nmNormals
Unsafe version ofmNormals(). -
nmTangents
Unsafe version ofmTangents(). -
nmBitangents
Unsafe version ofmBitangents(). -
nmColors
Unsafe version ofmColors(). -
nmColors
Unsafe version ofmColors. -
nmTextureCoords
Unsafe version ofmTextureCoords(). -
nmTextureCoords
Unsafe version ofmTextureCoords. -
nmNumUVComponents
Unsafe version ofmNumUVComponents(). -
nmNumUVComponents
public static int nmNumUVComponents(long struct, int index) Unsafe version ofmNumUVComponents. -
nmFaces
Unsafe version ofmFaces(). -
nmNumBones
public static int nmNumBones(long struct) Unsafe version ofmNumBones(). -
nmBones
Unsafe version ofmBones. -
nmMaterialIndex
public static int nmMaterialIndex(long struct) Unsafe version ofmMaterialIndex(). -
nmName
Unsafe version ofmName(). -
nmNumAnimMeshes
public static int nmNumAnimMeshes(long struct) Unsafe version ofmNumAnimMeshes(). -
nmAnimMeshes
Unsafe version ofmAnimMeshes. -
nmMethod
public static int nmMethod(long struct) Unsafe version ofmMethod(). -
nmAABB
Unsafe version ofmAABB(). -
nmTextureCoordsNames
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
Unsafe version ofmVertices. -
nmNormals
Unsafe version ofmNormals. -
nmTangents
Unsafe version ofmTangents. -
nmBitangents
Unsafe version ofmBitangents. -
nmColors
Unsafe version ofmColors. -
nmColors
Unsafe version ofmColors. -
nmTextureCoords
Unsafe version ofmTextureCoords. -
nmTextureCoords
Unsafe version ofmTextureCoords. -
nmNumUVComponents
Unsafe version ofmNumUVComponents. -
nmNumUVComponents
public static void nmNumUVComponents(long struct, int index, int value) Unsafe version ofmNumUVComponents. -
nmFaces
Unsafe version ofmFaces. -
nmNumBones
public static void nmNumBones(long struct, int value) Sets the specified value to themNumBonesfield of the specifiedstruct. -
nmBones
Unsafe version ofmBones. -
nmMaterialIndex
public static void nmMaterialIndex(long struct, int value) Unsafe version ofmMaterialIndex. -
nmName
Unsafe version ofmName. -
nmNumAnimMeshes
public static void nmNumAnimMeshes(long struct, int value) Sets the specified value to themNumAnimMeshesfield of the specifiedstruct. -
nmAnimMeshes
Unsafe version ofmAnimMeshes. -
nmMethod
public static void nmMethod(long struct, int value) Unsafe version ofmMethod. -
nmAABB
Unsafe version ofmAABB. -
nmTextureCoordsNames
Unsafe version ofmTextureCoordsNames. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-