Package org.lwjgl.assimp
Class AIScene
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct aiScene {
unsigned int mFlags;
{@link AINode struct aiNode} * mRootNode;
unsigned int mNumMeshes;
{@link AIMesh struct aiMesh} ** mMeshes;
unsigned int mNumMaterials;
{@link AIMaterial struct aiMaterial} ** mMaterials;
unsigned int mNumAnimations;
{@link AIAnimation struct aiAnimation} ** mAnimations;
unsigned int mNumTextures;
{@link AITexture struct aiTexture} ** mTextures;
unsigned int mNumLights;
{@link AILight struct aiLight} ** mLights;
unsigned int mNumCameras;
{@link AICamera struct aiCamera} ** mCameras;
{@link AIMetaData struct aiMetadata} * mMetaData;
{@link AIString struct aiString} mName;
unsigned int mNumSkeletons;
{@link AISkeleton struct aiSkeleton} ** mSkeletons;
char * mPrivate;
}
-
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 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 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
ConstructorsConstructorDescriptionAIScene
(ByteBuffer container) Creates aAIScene
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic AIScene
calloc()
Returns a newAIScene
instance allocated withmemCalloc
.static AIScene.Buffer
calloc
(int capacity) Returns a newAIScene.Buffer
instance allocated withmemCalloc
.static AIScene.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newAIScene.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIScene
calloc
(MemoryStack stack) Returns a newAIScene
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static AIScene
Deprecated.static AIScene.Buffer
callocStack
(int capacity) Deprecated.static AIScene.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static AIScene
callocStack
(MemoryStack stack) Deprecated.static AIScene
create()
Returns a newAIScene
instance allocated withBufferUtils
.static AIScene.Buffer
create
(int capacity) Returns a newAIScene.Buffer
instance allocated withBufferUtils
.static AIScene
create
(long address) Returns a newAIScene
instance for the specified memory address.static AIScene.Buffer
create
(long address, int capacity) Create aAIScene.Buffer
instance at the specified memory.static @Nullable AIScene
createSafe
(long address) static @Nullable AIScene.Buffer
createSafe
(long address, int capacity) static AIScene
malloc()
Returns a newAIScene
instance allocated withmemAlloc
.static AIScene.Buffer
malloc
(int capacity) Returns a newAIScene.Buffer
instance allocated withmemAlloc
.static AIScene.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newAIScene.Buffer
instance allocated on the specifiedMemoryStack
.static AIScene
malloc
(MemoryStack stack) Returns a newAIScene
instance allocated on the specifiedMemoryStack
.static AIScene
Deprecated.static AIScene.Buffer
mallocStack
(int capacity) Deprecated.static AIScene.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static AIScene
mallocStack
(MemoryStack stack) Deprecated.@Nullable PointerBuffer
mAnimations
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to themAnimations
field.@Nullable PointerBuffer
mCameras()
mCameras
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to themCameras
field.int
mFlags()
mFlags
(int value) Sets the specified value to themFlags
field.@Nullable PointerBuffer
mLights()
mLights
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to themLights
field.@Nullable PointerBuffer
mMaterials
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to themMaterials
field.@Nullable PointerBuffer
mMeshes()
mMeshes
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
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
int
int
int
int
int
@Nullable AINode
Sets the address of the specifiedAINode
to themRootNode
field.@Nullable PointerBuffer
mSkeletons
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to themSkeletons
field.@Nullable PointerBuffer
mTextures
(@Nullable PointerBuffer value) Sets the address of the specifiedPointerBuffer
to themTextures
field.static @Nullable PointerBuffer
nmAnimations
(long struct) Unsafe version ofmAnimations
.static void
nmAnimations
(long struct, @Nullable PointerBuffer value) Unsafe version ofmAnimations
.static @Nullable PointerBuffer
nmCameras
(long struct) Unsafe version ofmCameras
.static void
nmCameras
(long struct, @Nullable PointerBuffer value) Unsafe version ofmCameras
.static int
nmFlags
(long struct) Unsafe version ofmFlags()
.static void
nmFlags
(long struct, int value) Unsafe version ofmFlags
.static @Nullable PointerBuffer
nmLights
(long struct) Unsafe version ofmLights
.static void
nmLights
(long struct, @Nullable PointerBuffer value) Unsafe version ofmLights
.static @Nullable PointerBuffer
nmMaterials
(long struct) Unsafe version ofmMaterials
.static void
nmMaterials
(long struct, @Nullable PointerBuffer value) Unsafe version ofmMaterials
.static @Nullable PointerBuffer
nmMeshes
(long struct) Unsafe version ofmMeshes
.static void
nmMeshes
(long struct, @Nullable PointerBuffer value) 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
nmNumAnimations
(long struct) Unsafe version ofmNumAnimations()
.static void
nmNumAnimations
(long struct, int value) Sets the specified value to themNumAnimations
field of the specifiedstruct
.static int
nmNumCameras
(long struct) Unsafe version ofmNumCameras()
.static void
nmNumCameras
(long struct, int value) Sets the specified value to themNumCameras
field of the specifiedstruct
.static int
nmNumLights
(long struct) Unsafe version ofmNumLights()
.static void
nmNumLights
(long struct, int value) Sets the specified value to themNumLights
field of the specifiedstruct
.static int
nmNumMaterials
(long struct) Unsafe version ofmNumMaterials()
.static void
nmNumMaterials
(long struct, int value) Sets the specified value to themNumMaterials
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 int
nmNumSkeletons
(long struct) Unsafe version ofmNumSkeletons()
.static void
nmNumSkeletons
(long struct, int value) Sets the specified value to themNumSkeletons
field of the specifiedstruct
.static int
nmNumTextures
(long struct) Unsafe version ofmNumTextures()
.static void
nmNumTextures
(long struct, int value) Sets the specified value to themNumTextures
field of the specifiedstruct
.static ByteBuffer
nmPrivate
(long struct, int capacity) static void
nmPrivate
(long struct, ByteBuffer value) static @Nullable AINode
nmRootNode
(long struct) Unsafe version ofmRootNode()
.static void
nmRootNode
(long struct, @Nullable AINode value) Unsafe version ofmRootNode
.static @Nullable PointerBuffer
nmSkeletons
(long struct) Unsafe version ofmSkeletons
.static void
nmSkeletons
(long struct, @Nullable PointerBuffer value) Unsafe version ofmSkeletons
.static @Nullable PointerBuffer
nmTextures
(long struct) Unsafe version ofmTextures
.static void
nmTextures
(long struct, @Nullable PointerBuffer value) Unsafe version ofmTextures
.set
(int mFlags, @Nullable AINode mRootNode, @Nullable PointerBuffer mMeshes, @Nullable PointerBuffer mMaterials, @Nullable PointerBuffer mAnimations, @Nullable PointerBuffer mTextures, @Nullable PointerBuffer mLights, @Nullable PointerBuffer mCameras, @Nullable AIMetaData mMetaData, AIString mName, @Nullable PointerBuffer mSkeletons) Initializes this struct with the specified values.Copies the specified struct data to this struct.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. -
MFLAGS
public static final int MFLAGSThe struct member offsets. -
MROOTNODE
public static final int MROOTNODEThe struct member offsets. -
MNUMMESHES
public static final int MNUMMESHESThe struct member offsets. -
MMESHES
public static final int MMESHESThe struct member offsets. -
MNUMMATERIALS
public static final int MNUMMATERIALSThe struct member offsets. -
MMATERIALS
public static final int MMATERIALSThe struct member offsets. -
MNUMANIMATIONS
public static final int MNUMANIMATIONSThe struct member offsets. -
MANIMATIONS
public static final int MANIMATIONSThe struct member offsets. -
MNUMTEXTURES
public static final int MNUMTEXTURESThe struct member offsets. -
MTEXTURES
public static final int MTEXTURESThe struct member offsets. -
MNUMLIGHTS
public static final int MNUMLIGHTSThe struct member offsets. -
MLIGHTS
public static final int MLIGHTSThe struct member offsets. -
MNUMCAMERAS
public static final int MNUMCAMERASThe struct member offsets. -
MCAMERAS
public static final int MCAMERASThe struct member offsets. -
MMETADATA
public static final int MMETADATAThe struct member offsets. -
MNAME
public static final int MNAMEThe struct member offsets. -
MNUMSKELETONS
public static final int MNUMSKELETONSThe struct member offsets. -
MSKELETONS
public static final int MSKELETONSThe struct member offsets. -
MPRIVATE
public static final int MPRIVATEThe struct member offsets.
-
-
Constructor Details
-
AIScene
Creates aAIScene
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)
. -
mFlags
public int mFlags()- Returns:
- the value of the
mFlags
field.
-
mRootNode
- Returns:
- a
AINode
view of the struct pointed to by themRootNode
field.
-
mNumMeshes
public int mNumMeshes()- Returns:
- the value of the
mNumMeshes
field.
-
mMeshes
- Returns:
- a
PointerBuffer
view of the data pointed to by themMeshes
field.
-
mNumMaterials
public int mNumMaterials()- Returns:
- the value of the
mNumMaterials
field.
-
mMaterials
- Returns:
- a
PointerBuffer
view of the data pointed to by themMaterials
field.
-
mNumAnimations
public int mNumAnimations()- Returns:
- the value of the
mNumAnimations
field.
-
mAnimations
- Returns:
- a
PointerBuffer
view of the data pointed to by themAnimations
field.
-
mNumTextures
public int mNumTextures()- Returns:
- the value of the
mNumTextures
field.
-
mTextures
- Returns:
- a
PointerBuffer
view of the data pointed to by themTextures
field.
-
mNumLights
public int mNumLights()- Returns:
- the value of the
mNumLights
field.
-
mLights
- Returns:
- a
PointerBuffer
view of the data pointed to by themLights
field.
-
mNumCameras
public int mNumCameras()- Returns:
- the value of the
mNumCameras
field.
-
mCameras
- Returns:
- a
PointerBuffer
view of the data pointed to by themCameras
field.
-
mMetaData
- Returns:
- a
AIMetaData
view of the struct pointed to by themMetaData
field.
-
mName
- Returns:
- a
AIString
view of themName
field.
-
mNumSkeletons
public int mNumSkeletons()- Returns:
- the value of the
mNumSkeletons
field.
-
mSkeletons
- Returns:
- a
PointerBuffer
view of the data pointed to by themSkeletons
field.
-
mFlags
Sets the specified value to themFlags
field. -
mRootNode
Sets the address of the specifiedAINode
to themRootNode
field. -
mMeshes
Sets the address of the specifiedPointerBuffer
to themMeshes
field. -
mMaterials
Sets the address of the specifiedPointerBuffer
to themMaterials
field. -
mAnimations
Sets the address of the specifiedPointerBuffer
to themAnimations
field. -
mTextures
Sets the address of the specifiedPointerBuffer
to themTextures
field. -
mLights
Sets the address of the specifiedPointerBuffer
to themLights
field. -
mCameras
Sets the address of the specifiedPointerBuffer
to themCameras
field. -
mMetaData
Sets the address of the specifiedAIMetaData
to themMetaData
field. -
mName
Copies the specifiedAIString
to themName
field. -
mName
Passes themName
field to the specifiedConsumer
. -
mSkeletons
Sets the address of the specifiedPointerBuffer
to themSkeletons
field. -
set
public AIScene set(int mFlags, @Nullable AINode mRootNode, @Nullable PointerBuffer mMeshes, @Nullable PointerBuffer mMaterials, @Nullable PointerBuffer mAnimations, @Nullable PointerBuffer mTextures, @Nullable PointerBuffer mLights, @Nullable PointerBuffer mCameras, @Nullable AIMetaData mMetaData, AIString mName, @Nullable PointerBuffer mSkeletons) 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 newAIScene
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newAIScene
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newAIScene
instance allocated withBufferUtils
. -
create
Returns a newAIScene
instance for the specified memory address. -
createSafe
-
malloc
Returns a newAIScene.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newAIScene.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newAIScene.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aAIScene.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 newAIScene
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newAIScene
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newAIScene.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newAIScene.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nmFlags
public static int nmFlags(long struct) Unsafe version ofmFlags()
. -
nmRootNode
Unsafe version ofmRootNode()
. -
nmNumMeshes
public static int nmNumMeshes(long struct) Unsafe version ofmNumMeshes()
. -
nmMeshes
Unsafe version ofmMeshes
. -
nmNumMaterials
public static int nmNumMaterials(long struct) Unsafe version ofmNumMaterials()
. -
nmMaterials
Unsafe version ofmMaterials
. -
nmNumAnimations
public static int nmNumAnimations(long struct) Unsafe version ofmNumAnimations()
. -
nmAnimations
Unsafe version ofmAnimations
. -
nmNumTextures
public static int nmNumTextures(long struct) Unsafe version ofmNumTextures()
. -
nmTextures
Unsafe version ofmTextures
. -
nmNumLights
public static int nmNumLights(long struct) Unsafe version ofmNumLights()
. -
nmLights
Unsafe version ofmLights
. -
nmNumCameras
public static int nmNumCameras(long struct) Unsafe version ofmNumCameras()
. -
nmCameras
Unsafe version ofmCameras
. -
nmMetaData
Unsafe version ofmMetaData()
. -
nmName
Unsafe version ofmName()
. -
nmNumSkeletons
public static int nmNumSkeletons(long struct) Unsafe version ofmNumSkeletons()
. -
nmSkeletons
Unsafe version ofmSkeletons
. -
nmPrivate
-
nmFlags
public static void nmFlags(long struct, int value) Unsafe version ofmFlags
. -
nmRootNode
Unsafe version ofmRootNode
. -
nmNumMeshes
public static void nmNumMeshes(long struct, int value) Sets the specified value to themNumMeshes
field of the specifiedstruct
. -
nmMeshes
Unsafe version ofmMeshes
. -
nmNumMaterials
public static void nmNumMaterials(long struct, int value) Sets the specified value to themNumMaterials
field of the specifiedstruct
. -
nmMaterials
Unsafe version ofmMaterials
. -
nmNumAnimations
public static void nmNumAnimations(long struct, int value) Sets the specified value to themNumAnimations
field of the specifiedstruct
. -
nmAnimations
Unsafe version ofmAnimations
. -
nmNumTextures
public static void nmNumTextures(long struct, int value) Sets the specified value to themNumTextures
field of the specifiedstruct
. -
nmTextures
Unsafe version ofmTextures
. -
nmNumLights
public static void nmNumLights(long struct, int value) Sets the specified value to themNumLights
field of the specifiedstruct
. -
nmLights
Unsafe version ofmLights
. -
nmNumCameras
public static void nmNumCameras(long struct, int value) Sets the specified value to themNumCameras
field of the specifiedstruct
. -
nmCameras
Unsafe version ofmCameras
. -
nmMetaData
Unsafe version ofmMetaData
. -
nmName
Unsafe version ofmName
. -
nmNumSkeletons
public static void nmNumSkeletons(long struct, int value) Sets the specified value to themNumSkeletons
field of the specifiedstruct
. -
nmSkeletons
Unsafe version ofmSkeletons
. -
nmPrivate
-
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-