Package org.lwjgl.assimp
Class AIAnimMesh
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct aiAnimMesh {
{@link AIString struct aiString} mName;
{@link AIVector3D struct aiVector3D} * mVertices;
{@link AIVector3D struct aiVector3D} * mNormals;
{@link AIVector3D struct aiVector3D} * mTangents;
{@link AIVector3D struct aiVector3D} * mBitangents;
{@link AIColor4D struct aiColor4D} * mColors[Assimp.AI_MAX_NUMBER_OF_COLOR_SETS];
{@link AIVector3D 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.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The 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 aAIAnimMesh
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIAnimMesh
calloc()
Returns a newAIAnimMesh
instance allocated withmemCalloc
.static AIAnimMesh.Buffer
calloc
(int capacity) Returns a newAIAnimMesh.Buffer
instance allocated withmemCalloc
.static AIAnimMesh.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newAIAnimMesh.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIAnimMesh
calloc
(MemoryStack stack) Returns a newAIAnimMesh
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIAnimMesh
Deprecated.static AIAnimMesh.Buffer
callocStack
(int capacity) Deprecated.static AIAnimMesh.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static AIAnimMesh
callocStack
(MemoryStack stack) Deprecated.static AIAnimMesh
create()
Returns a newAIAnimMesh
instance allocated withBufferUtils
.static AIAnimMesh.Buffer
create
(int capacity) Returns a newAIAnimMesh.Buffer
instance allocated withBufferUtils
.static AIAnimMesh
create
(long address) Returns a newAIAnimMesh
instance for the specified memory address.static AIAnimMesh.Buffer
create
(long address, int capacity) Create aAIAnimMesh.Buffer
instance at the specified memory.static @Nullable AIAnimMesh
createSafe
(long address) static @Nullable AIAnimMesh.Buffer
createSafe
(long address, int capacity) static AIAnimMesh
malloc()
Returns a newAIAnimMesh
instance allocated withmemAlloc
.static AIAnimMesh.Buffer
malloc
(int capacity) Returns a newAIAnimMesh.Buffer
instance allocated withmemAlloc
.static AIAnimMesh.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newAIAnimMesh.Buffer
instance allocated on the specifiedMemoryStack
.static AIAnimMesh
malloc
(MemoryStack stack) Returns a newAIAnimMesh
instance allocated on the specifiedMemoryStack
.static AIAnimMesh
Deprecated.static AIAnimMesh.Buffer
mallocStack
(int capacity) Deprecated.static AIAnimMesh.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static AIAnimMesh
mallocStack
(MemoryStack stack) Deprecated.@Nullable AIVector3D.Buffer
mBitangents
(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Buffer
to themBitangents
field.mColors()
@Nullable AIColor4D.Buffer
mColors
(int index) mColors
(int index, Consumer<@Nullable AIColor4D.Buffer> consumer) mColors
(int index, @Nullable AIColor4D.Buffer value) Copies the address of the specifiedAIColor4D.Buffer
at the specified index of themColors
field.mColors
(PointerBuffer value) Copies the specifiedPointerBuffer
to themColors
field.mName()
Passes themName
field to the specifiedConsumer
.Copies the specifiedAIString
to themName
field.@Nullable AIVector3D.Buffer
mNormals()
mNormals
(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Buffer
to themNormals
field.int
mNumVertices
(int value) Sets the specified value to themNumVertices
field.@Nullable AIVector3D.Buffer
mTangents
(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Buffer
to themTangents
field.@Nullable AIVector3D.Buffer
mTextureCoords
(int index) mTextureCoords
(int index, Consumer<@Nullable AIVector3D.Buffer> consumer) mTextureCoords
(int index, @Nullable AIVector3D.Buffer value) Copies the address of the specifiedAIVector3D.Buffer
at the specified index of themTextureCoords
field.mTextureCoords
(PointerBuffer value) Copies the specifiedPointerBuffer
to themTextureCoords
field.@Nullable AIVector3D.Buffer
mVertices
(@Nullable AIVector3D.Buffer value) Sets the address of the specifiedAIVector3D.Buffer
to themVertices
field.float
mWeight()
mWeight
(float value) Sets the specified value to themWeight
field.static @Nullable AIVector3D.Buffer
nmBitangents
(long struct) Unsafe version ofmBitangents()
.static void
nmBitangents
(long struct, @Nullable AIVector3D.Buffer value) Unsafe version ofmBitangents
.static PointerBuffer
nmColors
(long struct) Unsafe version ofmColors()
.static @Nullable AIColor4D.Buffer
nmColors
(long struct, int index) Unsafe version ofmColors
.static void
nmColors
(long struct, int index, @Nullable AIColor4D.Buffer value) Unsafe version ofmColors
.static void
nmColors
(long struct, PointerBuffer value) Unsafe version ofmColors
.static AIString
nmName
(long struct) Unsafe version ofmName()
.static void
Unsafe version ofmName
.static @Nullable AIVector3D.Buffer
nmNormals
(long struct) Unsafe version ofmNormals()
.static void
nmNormals
(long struct, @Nullable AIVector3D.Buffer value) Unsafe version ofmNormals
.static int
nmNumVertices
(long struct) Unsafe version ofmNumVertices()
.static void
nmNumVertices
(long struct, int value) Sets the specified value to themNumVertices
field of the specifiedstruct
.static @Nullable AIVector3D.Buffer
nmTangents
(long struct) Unsafe version ofmTangents()
.static void
nmTangents
(long struct, @Nullable AIVector3D.Buffer value) Unsafe version ofmTangents
.static PointerBuffer
nmTextureCoords
(long struct) Unsafe version ofmTextureCoords()
.static @Nullable AIVector3D.Buffer
nmTextureCoords
(long struct, int index) Unsafe version ofmTextureCoords
.static void
nmTextureCoords
(long struct, int index, @Nullable AIVector3D.Buffer value) Unsafe version ofmTextureCoords
.static void
nmTextureCoords
(long struct, PointerBuffer value) Unsafe version ofmTextureCoords
.static @Nullable AIVector3D.Buffer
nmVertices
(long struct) Unsafe version ofmVertices()
.static void
nmVertices
(long struct, @Nullable AIVector3D.Buffer value) Unsafe version ofmVertices
.static float
nmWeight
(long struct) Unsafe version ofmWeight()
.static void
nmWeight
(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.int
sizeof()
Returnssizeof(struct)
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods 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 aAIAnimMesh
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<AIAnimMesh>
-
mName
- Returns:
- a
AIString
view of themName
field.
-
mVertices
- Returns:
- a
AIVector3D.Buffer
view of the struct array pointed to by themVertices
field.
-
mNormals
- Returns:
- a
AIVector3D.Buffer
view of the struct array pointed to by themNormals
field.
-
mTangents
- Returns:
- a
AIVector3D.Buffer
view of the struct array pointed to by themTangents
field.
-
mBitangents
- Returns:
- a
AIVector3D.Buffer
view of the struct array pointed to by themBitangents
field.
-
mColors
- Returns:
- a
PointerBuffer
view of themColors
field.
-
mColors
- Returns:
- a
AIColor4D
view of the pointer at the specified index of themColors
field.
-
mTextureCoords
- Returns:
- a
PointerBuffer
view of themTextureCoords
field.
-
mTextureCoords
- Returns:
- a
AIVector3D
view of the pointer at the specified index of themTextureCoords
field.
-
mNumVertices
public int mNumVertices()- Returns:
- the value of the
mNumVertices
field.
-
mWeight
public float mWeight()- Returns:
- the value of the
mWeight
field.
-
mName
Copies the specifiedAIString
to themName
field. -
mName
Passes themName
field to the specifiedConsumer
. -
mVertices
Sets the address of the specifiedAIVector3D.Buffer
to themVertices
field. -
mNormals
Sets the address of the specifiedAIVector3D.Buffer
to themNormals
field. -
mTangents
Sets the address of the specifiedAIVector3D.Buffer
to themTangents
field. -
mBitangents
Sets the address of the specifiedAIVector3D.Buffer
to themBitangents
field. -
mColors
Copies the specifiedPointerBuffer
to themColors
field. -
mColors
Copies the address of the specifiedAIColor4D.Buffer
at the specified index of themColors
field. -
mColors
-
mTextureCoords
Copies the specifiedPointerBuffer
to themTextureCoords
field. -
mTextureCoords
Copies the address of the specifiedAIVector3D.Buffer
at the specified index of themTextureCoords
field. -
mTextureCoords
-
mNumVertices
Sets the specified value to themNumVertices
field. -
mWeight
Sets the specified value to themWeight
field. -
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 newAIAnimMesh
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newAIAnimMesh
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newAIAnimMesh
instance allocated withBufferUtils
. -
create
Returns a newAIAnimMesh
instance for the specified memory address. -
createSafe
-
malloc
Returns a newAIAnimMesh.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newAIAnimMesh.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newAIAnimMesh.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aAIAnimMesh.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newAIAnimMesh
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newAIAnimMesh
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newAIAnimMesh.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newAIAnimMesh.Buffer
instance allocated on the specifiedMemoryStack
and 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 themNumVertices
field of the specifiedstruct
. -
nmWeight
public static void nmWeight(long struct, float value) Unsafe version ofmWeight
.
-