Package org.lwjgl.assimp
Class AIAnimMesh
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct aiAnimMesh {
struct aiString mName;
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 mNumVertices;
float mWeight;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionAIAnimMesh(ByteBuffer container) Creates aAIAnimMeshinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIAnimMeshcalloc()Returns a newAIAnimMeshinstance allocated withmemCalloc.static AIAnimMesh.Buffercalloc(int capacity) Returns a newAIAnimMesh.Bufferinstance allocated withmemCalloc.static AIAnimMesh.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIAnimMesh.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIAnimMeshcalloc(MemoryStack stack) Returns a newAIAnimMeshinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIAnimMeshcreate()Returns a newAIAnimMeshinstance allocated withBufferUtils.static AIAnimMesh.Buffercreate(int capacity) Returns a newAIAnimMesh.Bufferinstance allocated withBufferUtils.static AIAnimMeshcreate(long address) Returns a newAIAnimMeshinstance for the specified memory address.static AIAnimMesh.Buffercreate(long address, int capacity) Create aAIAnimMesh.Bufferinstance at the specified memory.static @Nullable AIAnimMeshcreateSafe(long address) static @Nullable AIAnimMesh.BuffercreateSafe(long address, int capacity) static AIAnimMeshmalloc()Returns a newAIAnimMeshinstance allocated withmemAlloc.static AIAnimMesh.Buffermalloc(int capacity) Returns a newAIAnimMesh.Bufferinstance allocated withmemAlloc.static AIAnimMesh.Buffermalloc(int capacity, MemoryStack stack) Returns a newAIAnimMesh.Bufferinstance allocated on the specifiedMemoryStack.static AIAnimMeshmalloc(MemoryStack stack) Returns a newAIAnimMeshinstance allocated on the specifiedMemoryStack.@Nullable AIVector3D.BuffermBitangents(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Bufferto themBitangentsfield.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.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.intmNumVertices(int value) Sets the specified value to themNumVerticesfield.@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 AIVector3D.BuffermVertices(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Bufferto themVerticesfield.floatmWeight()mWeight(float value) Sets the specified value to themWeightfield.static @Nullable AIVector3D.BuffernmBitangents(long struct) Unsafe version ofmBitangents().static voidnmBitangents(long struct, @Nullable AIVector3D.Buffer value) Unsafe version ofmBitangents.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 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 intnmNumVertices(long struct) Unsafe version ofmNumVertices().static voidnmNumVertices(long struct, int value) Sets the specified value to themNumVerticesfield of the specifiedstruct.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 AIVector3D.BuffernmVertices(long struct) Unsafe version ofmVertices().static voidnmVertices(long struct, @Nullable AIVector3D.Buffer value) Unsafe version ofmVertices.static floatnmWeight(long struct) Unsafe version ofmWeight().static voidnmWeight(long struct, float value) Unsafe version ofmWeight.set(AIAnimMesh src) Copies the specified struct data to this struct.set(AIString mName, @Nullable AIVector3D.Buffer mVertices, @Nullable AIVector3D.Buffer mNormals, @Nullable AIVector3D.Buffer mTangents, @Nullable AIVector3D.Buffer mBitangents, PointerBuffer mColors, PointerBuffer mTextureCoords, int mNumVertices, float mWeight) Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).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. -
MNAME
public static final int MNAMEThe 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. -
MNUMVERTICES
public static final int MNUMVERTICESThe struct member offsets. -
MWEIGHT
public static final int MWEIGHTThe struct member offsets.
-
-
Constructor Details
-
AIAnimMesh
Creates aAIAnimMeshinstance 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).- Specified by:
sizeofin classStruct<AIAnimMesh>
-
mName
- Returns:
- a
AIStringview of themNamefield.
-
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.
-
mNumVertices
public int mNumVertices()- Returns:
- the value of the
mNumVerticesfield.
-
mWeight
public float mWeight()- Returns:
- the value of the
mWeightfield.
-
mName
Copies the specifiedAIStringto themNamefield. -
mName
Passes themNamefield to the specifiedConsumer. -
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
-
mNumVertices
Sets the specified value to themNumVerticesfield. -
mWeight
Sets the specified value to themWeightfield. -
set
public AIAnimMesh set(AIString mName, @Nullable AIVector3D.Buffer mVertices, @Nullable AIVector3D.Buffer mNormals, @Nullable AIVector3D.Buffer mTangents, @Nullable AIVector3D.Buffer mBitangents, PointerBuffer mColors, PointerBuffer mTextureCoords, int mNumVertices, float mWeight) 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 newAIAnimMeshinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIAnimMeshinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIAnimMeshinstance allocated withBufferUtils. -
create
Returns a newAIAnimMeshinstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIAnimMesh.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIAnimMesh.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIAnimMesh.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIAnimMesh.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newAIAnimMeshinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIAnimMeshinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIAnimMesh.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIAnimMesh.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nmName
Unsafe version ofmName(). -
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. -
nmNumVertices
public static int nmNumVertices(long struct) Unsafe version ofmNumVertices(). -
nmWeight
public static float nmWeight(long struct) Unsafe version ofmWeight(). -
nmName
Unsafe version ofmName. -
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. -
nmNumVertices
public static void nmNumVertices(long struct, int value) Sets the specified value to themNumVerticesfield of the specifiedstruct. -
nmWeight
public static void nmWeight(long struct, float value) Unsafe version ofmWeight.
-