Package org.lwjgl.assimp
Class AIMeshAnim
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct aiMeshAnim {
struct aiString mName;
unsigned int mNumKeys;
struct aiMeshKey * mKeys;
}-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionAIMeshAnim(ByteBuffer container) Creates aAIMeshAniminstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIMeshAnimcalloc()Returns a newAIMeshAniminstance allocated withmemCalloc.static AIMeshAnim.Buffercalloc(int capacity) Returns a newAIMeshAnim.Bufferinstance allocated withmemCalloc.static AIMeshAnim.Buffercalloc(int capacity, MemoryStack stack) Returns a newAIMeshAnim.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshAnimcalloc(MemoryStack stack) Returns a newAIMeshAniminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AIMeshAnimcreate()Returns a newAIMeshAniminstance allocated withBufferUtils.static AIMeshAnim.Buffercreate(int capacity) Returns a newAIMeshAnim.Bufferinstance allocated withBufferUtils.static AIMeshAnimcreate(long address) Returns a newAIMeshAniminstance for the specified memory address.static AIMeshAnim.Buffercreate(long address, int capacity) Create aAIMeshAnim.Bufferinstance at the specified memory.static @Nullable AIMeshAnimcreateSafe(long address) static @Nullable AIMeshAnim.BuffercreateSafe(long address, int capacity) static AIMeshAnimmalloc()Returns a newAIMeshAniminstance allocated withmemAlloc.static AIMeshAnim.Buffermalloc(int capacity) Returns a newAIMeshAnim.Bufferinstance allocated withmemAlloc.static AIMeshAnim.Buffermalloc(int capacity, MemoryStack stack) Returns a newAIMeshAnim.Bufferinstance allocated on the specifiedMemoryStack.static AIMeshAnimmalloc(MemoryStack stack) Returns a newAIMeshAniminstance allocated on the specifiedMemoryStack.mKeys()mKeys(AIMeshKey.Buffer value) Sets the address of the specifiedAIMeshKey.Bufferto themKeysfield.mName()Passes themNamefield to the specifiedConsumer.Copies the specifiedAIStringto themNamefield.intmNumKeys()static AIMeshKey.BuffernmKeys(long struct) Unsafe version ofmKeys().static voidnmKeys(long struct, AIMeshKey.Buffer value) Unsafe version ofmKeys.static AIStringnmName(long struct) Unsafe version ofmName().static voidUnsafe version ofmName.static intnmNumKeys(long struct) Unsafe version ofmNumKeys().static voidnmNumKeys(long struct, int value) Sets the specified value to themNumKeysfield of the specifiedstruct.set(AIMeshAnim src) Copies the specified struct data to this struct.set(AIString mName, AIMeshKey.Buffer mKeys) 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. -
MNUMKEYS
public static final int MNUMKEYSThe struct member offsets. -
MKEYS
public static final int MKEYSThe struct member offsets.
-
-
Constructor Details
-
AIMeshAnim
Creates aAIMeshAniminstance 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<AIMeshAnim>
-
mName
- Returns:
- a
AIStringview of themNamefield.
-
mNumKeys
public int mNumKeys()- Returns:
- the value of the
mNumKeysfield.
-
mKeys
- Returns:
- a
AIMeshKey.Bufferview of the struct array pointed to by themKeysfield.
-
mName
Copies the specifiedAIStringto themNamefield. -
mName
Passes themNamefield to the specifiedConsumer. -
mKeys
Sets the address of the specifiedAIMeshKey.Bufferto themKeysfield. -
set
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 newAIMeshAniminstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAIMeshAniminstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAIMeshAniminstance allocated withBufferUtils. -
create
Returns a newAIMeshAniminstance for the specified memory address. -
createSafe
-
malloc
Returns a newAIMeshAnim.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAIMeshAnim.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAIMeshAnim.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAIMeshAnim.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newAIMeshAniminstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAIMeshAniminstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAIMeshAnim.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAIMeshAnim.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(). -
nmNumKeys
public static int nmNumKeys(long struct) Unsafe version ofmNumKeys(). -
nmKeys
Unsafe version ofmKeys(). -
nmName
Unsafe version ofmName. -
nmNumKeys
public static void nmNumKeys(long struct, int value) Sets the specified value to themNumKeysfield of the specifiedstruct. -
nmKeys
Unsafe version ofmKeys. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-