Package org.lwjgl.assimp
Class AINode
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct aiNode {
{@link AIString struct aiString} mName;
{@link AIMatrix4x4 struct aiMatrix4x4} mTransformation;
{@link AINode struct aiNode} * mParent;
unsigned int mNumChildren;
{@link AINode struct aiNode} ** mChildren;
unsigned int mNumMeshes;
unsigned int * mMeshes;
{@link AIMetaData struct aiMetadata} * mMetadata;
}
-
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 size in bytes.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionAINode
(ByteBuffer container) Creates aAINode
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AINode
calloc()
Returns a newAINode
instance allocated withmemCalloc
.static AINode.Buffer
calloc
(int capacity) Returns a newAINode.Buffer
instance allocated withmemCalloc
.static AINode.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newAINode.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AINode
calloc
(MemoryStack stack) Returns a newAINode
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AINode
Deprecated.static AINode.Buffer
callocStack
(int capacity) Deprecated.static AINode.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static AINode
callocStack
(MemoryStack stack) Deprecated.static AINode
create()
Returns a newAINode
instance allocated withBufferUtils
.static AINode.Buffer
create
(int capacity) Returns a newAINode.Buffer
instance allocated withBufferUtils
.static AINode
create
(long address) Returns a newAINode
instance for the specified memory address.static AINode.Buffer
create
(long address, int capacity) Create aAINode.Buffer
instance at the specified memory.static @Nullable AINode
createSafe
(long address) static @Nullable AINode.Buffer
createSafe
(long address, int capacity) static AINode
malloc()
Returns a newAINode
instance allocated withmemAlloc
.static AINode.Buffer
malloc
(int capacity) Returns a newAINode.Buffer
instance allocated withmemAlloc
.static AINode.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newAINode.Buffer
instance allocated on the specifiedMemoryStack
.static AINode
malloc
(MemoryStack stack) Returns a newAINode
instance allocated on the specifiedMemoryStack
.static AINode
Deprecated.static AINode.Buffer
mallocStack
(int capacity) Deprecated.static AINode.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static AINode
mallocStack
(MemoryStack stack) Deprecated.@Nullable PointerBuffer
mChildren
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to themChildren
field.@Nullable IntBuffer
mMeshes()
Sets the address of the specifiedIntBuffer
to themMeshes
field.@Nullable AIMetaData
mMetadata
(@Nullable AIMetaData value) Sets the address of the specifiedAIMetaData
to themMetadata
field.mName()
Passes themName
field to the specifiedConsumer
.Copies the specifiedAIString
to themName
field.int
int
@Nullable AINode
mParent()
Sets the address of the specifiedAINode
to themParent
field.mTransformation
(Consumer<AIMatrix4x4> consumer) Passes themTransformation
field to the specifiedConsumer
.mTransformation
(AIMatrix4x4 value) Copies the specifiedAIMatrix4x4
to themTransformation
field.static @Nullable PointerBuffer
nmChildren
(long struct) Unsafe version ofmChildren
.static void
nmChildren
(long struct, @Nullable PointerBuffer value) Unsafe version ofmChildren
.static @Nullable IntBuffer
nmMeshes
(long struct) Unsafe version ofmMeshes
.static void
Unsafe version ofmMeshes
.static @Nullable AIMetaData
nmMetadata
(long struct) Unsafe version ofmMetadata()
.static void
nmMetadata
(long struct, @Nullable AIMetaData value) Unsafe version ofmMetadata
.static AIString
nmName
(long struct) Unsafe version ofmName()
.static void
Unsafe version ofmName
.static int
nmNumChildren
(long struct) Unsafe version ofmNumChildren()
.static void
nmNumChildren
(long struct, int value) Sets the specified value to themNumChildren
field of the specifiedstruct
.static int
nmNumMeshes
(long struct) Unsafe version ofmNumMeshes()
.static void
nmNumMeshes
(long struct, int value) Sets the specified value to themNumMeshes
field of the specifiedstruct
.static @Nullable AINode
nmParent
(long struct) Unsafe version ofmParent()
.static void
Unsafe version ofmParent
.static AIMatrix4x4
nmTransformation
(long struct) Unsafe version ofmTransformation()
.static void
nmTransformation
(long struct, AIMatrix4x4 value) Unsafe version ofmTransformation
.Copies the specified struct data to this struct.set
(AIString mName, AIMatrix4x4 mTransformation, @Nullable AINode mParent, @Nullable PointerBuffer mChildren, @Nullable IntBuffer mMeshes, @Nullable AIMetaData mMetadata) 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. -
MTRANSFORMATION
public static final int MTRANSFORMATIONThe struct member offsets. -
MPARENT
public static final int MPARENTThe struct member offsets. -
MNUMCHILDREN
public static final int MNUMCHILDRENThe struct member offsets. -
MCHILDREN
public static final int MCHILDRENThe struct member offsets. -
MNUMMESHES
public static final int MNUMMESHESThe struct member offsets. -
MMESHES
public static final int MMESHESThe struct member offsets. -
MMETADATA
public static final int MMETADATAThe struct member offsets.
-
-
Constructor Details
-
AINode
Creates aAINode
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)
. -
mName
- Returns:
- a
AIString
view of themName
field.
-
mTransformation
- Returns:
- a
AIMatrix4x4
view of themTransformation
field.
-
mParent
- Returns:
- a
AINode
view of the struct pointed to by themParent
field.
-
mNumChildren
public int mNumChildren()- Returns:
- the value of the
mNumChildren
field.
-
mChildren
- Returns:
- a
PointerBuffer
view of the data pointed to by themChildren
field.
-
mNumMeshes
public int mNumMeshes()- Returns:
- the value of the
mNumMeshes
field.
-
mMeshes
- Returns:
- a
IntBuffer
view of the data pointed to by themMeshes
field.
-
mMetadata
- Returns:
- a
AIMetaData
view of the struct pointed to by themMetadata
field.
-
mName
Copies the specifiedAIString
to themName
field. -
mName
Passes themName
field to the specifiedConsumer
. -
mTransformation
Copies the specifiedAIMatrix4x4
to themTransformation
field. -
mTransformation
Passes themTransformation
field to the specifiedConsumer
. -
mParent
Sets the address of the specifiedAINode
to themParent
field. -
mChildren
Sets the address of the specifiedPointerBuffer
to themChildren
field. -
mMeshes
Sets the address of the specifiedIntBuffer
to themMeshes
field. -
mMetadata
Sets the address of the specifiedAIMetaData
to themMetadata
field. -
set
public AINode set(AIString mName, AIMatrix4x4 mTransformation, @Nullable AINode mParent, @Nullable PointerBuffer mChildren, @Nullable IntBuffer mMeshes, @Nullable AIMetaData mMetadata) 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 newAINode
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newAINode
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newAINode
instance allocated withBufferUtils
. -
create
Returns a newAINode
instance for the specified memory address. -
createSafe
-
malloc
Returns a newAINode.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newAINode.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newAINode.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aAINode.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 newAINode
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newAINode
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newAINode.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newAINode.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()
. -
nmTransformation
Unsafe version ofmTransformation()
. -
nmParent
Unsafe version ofmParent()
. -
nmNumChildren
public static int nmNumChildren(long struct) Unsafe version ofmNumChildren()
. -
nmChildren
Unsafe version ofmChildren
. -
nmNumMeshes
public static int nmNumMeshes(long struct) Unsafe version ofmNumMeshes()
. -
nmMeshes
Unsafe version ofmMeshes
. -
nmMetadata
Unsafe version ofmMetadata()
. -
nmName
Unsafe version ofmName
. -
nmTransformation
Unsafe version ofmTransformation
. -
nmParent
Unsafe version ofmParent
. -
nmNumChildren
public static void nmNumChildren(long struct, int value) Sets the specified value to themNumChildren
field of the specifiedstruct
. -
nmChildren
Unsafe version ofmChildren
. -
nmNumMeshes
public static void nmNumMeshes(long struct, int value) Sets the specified value to themNumMeshes
field of the specifiedstruct
. -
nmMeshes
Unsafe version ofmMeshes
. -
nmMetadata
Unsafe version ofmMetadata
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-