Package org.lwjgl.assimp
Class AISkeleton
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct aiSkeleton {
{@link AIString struct aiString} mName;
unsigned int mNumBones;
{@link AISkeletonBone struct aiSkeletonBone} ** mBones;
}-
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
ConstructorsConstructorDescriptionAISkeleton(ByteBuffer container) Creates aAISkeletoninstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic AISkeletoncalloc()Returns a newAISkeletoninstance allocated withmemCalloc.static AISkeleton.Buffercalloc(int capacity) Returns a newAISkeleton.Bufferinstance allocated withmemCalloc.static AISkeleton.Buffercalloc(int capacity, MemoryStack stack) Returns a newAISkeleton.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AISkeletoncalloc(MemoryStack stack) Returns a newAISkeletoninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static AISkeletoncreate()Returns a newAISkeletoninstance allocated withBufferUtils.static AISkeleton.Buffercreate(int capacity) Returns a newAISkeleton.Bufferinstance allocated withBufferUtils.static AISkeletoncreate(long address) Returns a newAISkeletoninstance for the specified memory address.static AISkeleton.Buffercreate(long address, int capacity) Create aAISkeleton.Bufferinstance at the specified memory.static @Nullable AISkeletoncreateSafe(long address) static @Nullable AISkeleton.BuffercreateSafe(long address, int capacity) static AISkeletonmalloc()Returns a newAISkeletoninstance allocated withmemAlloc.static AISkeleton.Buffermalloc(int capacity) Returns a newAISkeleton.Bufferinstance allocated withmemAlloc.static AISkeleton.Buffermalloc(int capacity, MemoryStack stack) Returns a newAISkeleton.Bufferinstance allocated on the specifiedMemoryStack.static AISkeletonmalloc(MemoryStack stack) Returns a newAISkeletoninstance allocated on the specifiedMemoryStack.mBones()mBones(PointerBuffer value) Sets the address of the specifiedPointerBufferto themBonesfield.mName()Passes themNamefield to the specifiedConsumer.Copies the specifiedAIStringto themNamefield.intstatic PointerBuffernmBones(long struct) Unsafe version ofmBones.static voidnmBones(long struct, PointerBuffer value) Unsafe version ofmBones.static AIStringnmName(long struct) Unsafe version ofmName().static voidUnsafe version ofmName.static intnmNumBones(long struct) Unsafe version ofmNumBones().static voidnmNumBones(long struct, int value) Sets the specified value to themNumBonesfield of the specifiedstruct.set(AISkeleton src) Copies the specified struct data to this struct.set(AIString mName, PointerBuffer mBones) 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. -
MNUMBONES
public static final int MNUMBONESThe struct member offsets. -
MBONES
public static final int MBONESThe struct member offsets.
-
-
Constructor Details
-
AISkeleton
Creates aAISkeletoninstance 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<AISkeleton>
-
mName
- Returns:
- a
AIStringview of themNamefield.
-
mNumBones
public int mNumBones()- Returns:
- the value of the
mNumBonesfield.
-
mBones
- Returns:
- a
PointerBufferview of the data pointed to by themBonesfield.
-
mName
Copies the specifiedAIStringto themNamefield. -
mName
Passes themNamefield to the specifiedConsumer. -
mBones
Sets the address of the specifiedPointerBufferto themBonesfield. -
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 newAISkeletoninstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newAISkeletoninstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newAISkeletoninstance allocated withBufferUtils. -
create
Returns a newAISkeletoninstance for the specified memory address. -
createSafe
-
malloc
Returns a newAISkeleton.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newAISkeleton.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newAISkeleton.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aAISkeleton.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newAISkeletoninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newAISkeletoninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newAISkeleton.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newAISkeleton.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(). -
nmNumBones
public static int nmNumBones(long struct) Unsafe version ofmNumBones(). -
nmBones
Unsafe version ofmBones. -
nmName
Unsafe version ofmName. -
nmNumBones
public static void nmNumBones(long struct, int value) Sets the specified value to themNumBonesfield of the specifiedstruct. -
nmBones
Unsafe version ofmBones. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL.- Parameters:
struct- the struct to validate
-