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.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
ConstructorsConstructorDescriptionAIAnimation(ByteBuffer container) Creates aAIAnimationinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIAnimationcalloc()Returns a newAIAnimationinstance allocated withmemCalloc.static AIAnimation.Buffercalloc(int capacity) Returns a newAIAnimation.Bufferinstance allocated withmemCalloc.static AIAnimation.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIAnimation.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIAnimationcalloc(MemoryStack stack) Returns a newAIAnimationinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIAnimationDeprecated.static AIAnimation.BuffercallocStack(int capacity) Deprecated.static AIAnimation.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static AIAnimationcallocStack(MemoryStack stack) Deprecated.static AIAnimationcreate()Returns a newAIAnimationinstance allocated withBufferUtils.static AIAnimation.Buffercreate(int capacity) Returns a newAIAnimation.Bufferinstance allocated withBufferUtils.static AIAnimationcreate(long address) Returns a newAIAnimationinstance for the specified memory address.static AIAnimation.Buffercreate(long address, int capacity) Create aAIAnimation.Bufferinstance at the specified memory.static @Nullable AIAnimationcreateSafe(long address) static @Nullable AIAnimation.BuffercreateSafe(long address, int capacity) static AIAnimationmalloc()Returns a newAIAnimationinstance allocated withmemAlloc.static AIAnimation.Buffermalloc(int capacity) Returns a newAIAnimation.Bufferinstance allocated withmemAlloc.static AIAnimation.Buffermalloc(int capacity, MemoryStack stack) Returns a newAIAnimation.Bufferinstance allocated on the specifiedMemoryStack.static AIAnimationmalloc(MemoryStack stack) Returns a newAIAnimationinstance allocated on the specifiedMemoryStack.static AIAnimationDeprecated.static AIAnimation.BuffermallocStack(int capacity) Deprecated.static AIAnimation.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static AIAnimationmallocStack(MemoryStack stack) Deprecated.@Nullable PointerBuffermChannels(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themChannelsfield.doublemDuration(double value) Sets the specified value to themDurationfield.@Nullable PointerBuffermMeshChannels(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themMeshChannelsfield.@Nullable PointerBuffermMorphMeshChannels(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBufferto themMorphMeshChannelsfield.mName()Passes themNamefield to the specifiedConsumer.Copies the specifiedAIStringto themNamefield.intintintdoublemTicksPerSecond(double value) Sets the specified value to themTicksPerSecondfield.static @Nullable PointerBuffernmChannels(long struct) Unsafe version ofmChannels.static voidnmChannels(long struct, @Nullable PointerBuffer value) Unsafe version ofmChannels.static doublenmDuration(long struct) Unsafe version ofmDuration().static voidnmDuration(long struct, double value) Unsafe version ofmDuration.static @Nullable PointerBuffernmMeshChannels(long struct) Unsafe version ofmMeshChannels.static voidnmMeshChannels(long struct, @Nullable PointerBuffer value) Unsafe version ofmMeshChannels.static @Nullable PointerBuffernmMorphMeshChannels(long struct) Unsafe version ofmMorphMeshChannels.static voidnmMorphMeshChannels(long struct, @Nullable PointerBuffer value) Unsafe version ofmMorphMeshChannels.static AIStringnmName(long struct) Unsafe version ofmName().static voidUnsafe version ofmName.static intnmNumChannels(long struct) Unsafe version ofmNumChannels().static voidnmNumChannels(long struct, int value) Sets the specified value to themNumChannelsfield of the specifiedstruct.static intnmNumMeshChannels(long struct) Unsafe version ofmNumMeshChannels().static voidnmNumMeshChannels(long struct, int value) Sets the specified value to themNumMeshChannelsfield of the specifiedstruct.static intnmNumMorphMeshChannels(long struct) Unsafe version ofmNumMorphMeshChannels().static voidnmNumMorphMeshChannels(long struct, int value) Sets the specified value to themNumMorphMeshChannelsfield of the specifiedstruct.static doublenmTicksPerSecond(long struct) Unsafe version ofmTicksPerSecond().static voidnmTicksPerSecond(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.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. -
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 aAIAnimationinstance 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<AIAnimation>
-
mName
- Returns:
- a
AIStringview of themNamefield.
-
mDuration
public double mDuration()- Returns:
- the value of the
mDurationfield.
-
mTicksPerSecond
public double mTicksPerSecond()- Returns:
- the value of the
mTicksPerSecondfield.
-
mNumChannels
public int mNumChannels()- Returns:
- the value of the
mNumChannelsfield.
-
mChannels
- Returns:
- a
PointerBufferview of the data pointed to by themChannelsfield.
-
mNumMeshChannels
public int mNumMeshChannels()- Returns:
- the value of the
mNumMeshChannelsfield.
-
mMeshChannels
- Returns:
- a
PointerBufferview of the data pointed to by themMeshChannelsfield.
-
mNumMorphMeshChannels
public int mNumMorphMeshChannels()- Returns:
- the value of the
mNumMorphMeshChannelsfield.
-
mMorphMeshChannels
- Returns:
- a
PointerBufferview of the data pointed to by themMorphMeshChannelsfield.
-
mName
Copies the specifiedAIStringto themNamefield. -
mName
Passes themNamefield to the specifiedConsumer. -
mDuration
Sets the specified value to themDurationfield. -
mTicksPerSecond
Sets the specified value to themTicksPerSecondfield. -
mChannels
Sets the address of the specifiedPointerBufferto themChannelsfield. -
mMeshChannels
Sets the address of the specifiedPointerBufferto themMeshChannelsfield. -
mMorphMeshChannels
Sets the address of the specifiedPointerBufferto themMorphMeshChannelsfield. -
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 newAIAnimationinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIAnimationinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIAnimationinstance allocated withBufferUtils. -
create
Returns a newAIAnimationinstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIAnimation.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIAnimation.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIAnimation.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIAnimation.Bufferinstance 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 newAIAnimationinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIAnimationinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIAnimation.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIAnimation.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(). -
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 themNumChannelsfield of the specifiedstruct. -
nmChannels
Unsafe version ofmChannels. -
nmNumMeshChannels
public static void nmNumMeshChannels(long struct, int value) Sets the specified value to themNumMeshChannelsfield of the specifiedstruct. -
nmMeshChannels
Unsafe version ofmMeshChannels. -
nmNumMorphMeshChannels
public static void nmNumMorphMeshChannels(long struct, int value) Sets the specified value to themNumMorphMeshChannelsfield 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
-