Package org.lwjgl.assimp
Class AIAnimation
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct aiAnimation {
{@link AIString struct aiString} mName;
double mDuration;
double mTicksPerSecond;
unsigned int mNumChannels;
{@link AINodeAnim struct aiNodeAnim} ** mChannels;
unsigned int mNumMeshChannels;
{@link AIMeshAnim struct aiMeshAnim} ** mMeshChannels;
unsigned int mNumMorphMeshChannels;
{@link AIMeshMorphAnim struct aiMeshMorphAnim} ** mMorphMeshChannels;
}
-
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
ConstructorsConstructorDescriptionAIAnimation
(ByteBuffer container) Creates aAIAnimation
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIAnimation
calloc()
Returns a newAIAnimation
instance allocated withmemCalloc
.static AIAnimation.Buffer
calloc
(int capacity) Returns a newAIAnimation.Buffer
instance allocated withmemCalloc
.static AIAnimation.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newAIAnimation.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIAnimation
calloc
(MemoryStack stack) Returns a newAIAnimation
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIAnimation
Deprecated.static AIAnimation.Buffer
callocStack
(int capacity) Deprecated.static AIAnimation.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static AIAnimation
callocStack
(MemoryStack stack) Deprecated.static AIAnimation
create()
Returns a newAIAnimation
instance allocated withBufferUtils
.static AIAnimation.Buffer
create
(int capacity) Returns a newAIAnimation.Buffer
instance allocated withBufferUtils
.static AIAnimation
create
(long address) Returns a newAIAnimation
instance for the specified memory address.static AIAnimation.Buffer
create
(long address, int capacity) Create aAIAnimation.Buffer
instance at the specified memory.static @Nullable AIAnimation
createSafe
(long address) static @Nullable AIAnimation.Buffer
createSafe
(long address, int capacity) static AIAnimation
malloc()
Returns a newAIAnimation
instance allocated withmemAlloc
.static AIAnimation.Buffer
malloc
(int capacity) Returns a newAIAnimation.Buffer
instance allocated withmemAlloc
.static AIAnimation.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newAIAnimation.Buffer
instance allocated on the specifiedMemoryStack
.static AIAnimation
malloc
(MemoryStack stack) Returns a newAIAnimation
instance allocated on the specifiedMemoryStack
.static AIAnimation
Deprecated.static AIAnimation.Buffer
mallocStack
(int capacity) Deprecated.static AIAnimation.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static AIAnimation
mallocStack
(MemoryStack stack) Deprecated.@Nullable PointerBuffer
mChannels
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to themChannels
field.double
mDuration
(double value) Sets the specified value to themDuration
field.@Nullable PointerBuffer
mMeshChannels
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to themMeshChannels
field.@Nullable PointerBuffer
mMorphMeshChannels
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to themMorphMeshChannels
field.mName()
Passes themName
field to the specifiedConsumer
.Copies the specifiedAIString
to themName
field.int
int
int
double
mTicksPerSecond
(double value) Sets the specified value to themTicksPerSecond
field.static @Nullable PointerBuffer
nmChannels
(long struct) Unsafe version ofmChannels
.static void
nmChannels
(long struct, @Nullable PointerBuffer value) Unsafe version ofmChannels
.static double
nmDuration
(long struct) Unsafe version ofmDuration()
.static void
nmDuration
(long struct, double value) Unsafe version ofmDuration
.static @Nullable PointerBuffer
nmMeshChannels
(long struct) Unsafe version ofmMeshChannels
.static void
nmMeshChannels
(long struct, @Nullable PointerBuffer value) Unsafe version ofmMeshChannels
.static @Nullable PointerBuffer
nmMorphMeshChannels
(long struct) Unsafe version ofmMorphMeshChannels
.static void
nmMorphMeshChannels
(long struct, @Nullable PointerBuffer value) Unsafe version ofmMorphMeshChannels
.static AIString
nmName
(long struct) Unsafe version ofmName()
.static void
Unsafe version ofmName
.static int
nmNumChannels
(long struct) Unsafe version ofmNumChannels()
.static void
nmNumChannels
(long struct, int value) Sets the specified value to themNumChannels
field of the specifiedstruct
.static int
nmNumMeshChannels
(long struct) Unsafe version ofmNumMeshChannels()
.static void
nmNumMeshChannels
(long struct, int value) Sets the specified value to themNumMeshChannels
field of the specifiedstruct
.static int
nmNumMorphMeshChannels
(long struct) Unsafe version ofmNumMorphMeshChannels()
.static void
nmNumMorphMeshChannels
(long struct, int value) Sets the specified value to themNumMorphMeshChannels
field of the specifiedstruct
.static double
nmTicksPerSecond
(long struct) Unsafe version ofmTicksPerSecond()
.static void
nmTicksPerSecond
(long struct, double value) Unsafe version ofmTicksPerSecond
.set
(AIAnimation src) Copies the specified struct data to this struct.set
(AIString mName, double mDuration, double mTicksPerSecond, @Nullable PointerBuffer mChannels, @Nullable PointerBuffer mMeshChannels, @Nullable PointerBuffer mMorphMeshChannels) Initializes this struct with the specified values.int
sizeof()
Returnssizeof(struct)
.static void
validate
(long struct) Validates pointer members that should not beNULL
.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. -
MDURATION
public static final int MDURATIONThe struct member offsets. -
MTICKSPERSECOND
public static final int MTICKSPERSECONDThe struct member offsets. -
MNUMCHANNELS
public static final int MNUMCHANNELSThe struct member offsets. -
MCHANNELS
public static final int MCHANNELSThe struct member offsets. -
MNUMMESHCHANNELS
public static final int MNUMMESHCHANNELSThe struct member offsets. -
MMESHCHANNELS
public static final int MMESHCHANNELSThe struct member offsets. -
MNUMMORPHMESHCHANNELS
public static final int MNUMMORPHMESHCHANNELSThe struct member offsets. -
MMORPHMESHCHANNELS
public static final int MMORPHMESHCHANNELSThe struct member offsets.
-
-
Constructor Details
-
AIAnimation
Creates aAIAnimation
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<AIAnimation>
-
mName
- Returns:
- a
AIString
view of themName
field.
-
mDuration
public double mDuration()- Returns:
- the value of the
mDuration
field.
-
mTicksPerSecond
public double mTicksPerSecond()- Returns:
- the value of the
mTicksPerSecond
field.
-
mNumChannels
public int mNumChannels()- Returns:
- the value of the
mNumChannels
field.
-
mChannels
- Returns:
- a
PointerBuffer
view of the data pointed to by themChannels
field.
-
mNumMeshChannels
public int mNumMeshChannels()- Returns:
- the value of the
mNumMeshChannels
field.
-
mMeshChannels
- Returns:
- a
PointerBuffer
view of the data pointed to by themMeshChannels
field.
-
mNumMorphMeshChannels
public int mNumMorphMeshChannels()- Returns:
- the value of the
mNumMorphMeshChannels
field.
-
mMorphMeshChannels
- Returns:
- a
PointerBuffer
view of the data pointed to by themMorphMeshChannels
field.
-
mName
Copies the specifiedAIString
to themName
field. -
mName
Passes themName
field to the specifiedConsumer
. -
mDuration
Sets the specified value to themDuration
field. -
mTicksPerSecond
Sets the specified value to themTicksPerSecond
field. -
mChannels
Sets the address of the specifiedPointerBuffer
to themChannels
field. -
mMeshChannels
Sets the address of the specifiedPointerBuffer
to themMeshChannels
field. -
mMorphMeshChannels
Sets the address of the specifiedPointerBuffer
to themMorphMeshChannels
field. -
set
public AIAnimation set(AIString mName, double mDuration, double mTicksPerSecond, @Nullable PointerBuffer mChannels, @Nullable PointerBuffer mMeshChannels, @Nullable PointerBuffer mMorphMeshChannels) 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 newAIAnimation
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newAIAnimation
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newAIAnimation
instance allocated withBufferUtils
. -
create
Returns a newAIAnimation
instance for the specified memory address. -
createSafe
-
malloc
Returns a newAIAnimation.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newAIAnimation.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newAIAnimation.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aAIAnimation.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 newAIAnimation
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newAIAnimation
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newAIAnimation.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newAIAnimation.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()
. -
nmDuration
public static double nmDuration(long struct) Unsafe version ofmDuration()
. -
nmTicksPerSecond
public static double nmTicksPerSecond(long struct) Unsafe version ofmTicksPerSecond()
. -
nmNumChannels
public static int nmNumChannels(long struct) Unsafe version ofmNumChannels()
. -
nmChannels
Unsafe version ofmChannels
. -
nmNumMeshChannels
public static int nmNumMeshChannels(long struct) Unsafe version ofmNumMeshChannels()
. -
nmMeshChannels
Unsafe version ofmMeshChannels
. -
nmNumMorphMeshChannels
public static int nmNumMorphMeshChannels(long struct) Unsafe version ofmNumMorphMeshChannels()
. -
nmMorphMeshChannels
Unsafe version ofmMorphMeshChannels
. -
nmName
Unsafe version ofmName
. -
nmDuration
public static void nmDuration(long struct, double value) Unsafe version ofmDuration
. -
nmTicksPerSecond
public static void nmTicksPerSecond(long struct, double value) Unsafe version ofmTicksPerSecond
. -
nmNumChannels
public static void nmNumChannels(long struct, int value) Sets the specified value to themNumChannels
field of the specifiedstruct
. -
nmChannels
Unsafe version ofmChannels
. -
nmNumMeshChannels
public static void nmNumMeshChannels(long struct, int value) Sets the specified value to themNumMeshChannels
field of the specifiedstruct
. -
nmMeshChannels
Unsafe version ofmMeshChannels
. -
nmNumMorphMeshChannels
public static void nmNumMorphMeshChannels(long struct, int value) Sets the specified value to themNumMorphMeshChannels
field of the specifiedstruct
. -
nmMorphMeshChannels
Unsafe version ofmMorphMeshChannels
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-