Top Description Inners Fields Constructors Methods
org.lwjgl.assimp

public Class AIScene

extends Struct<AIScene>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Annotations
@NativeType:struct aiScene
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

The root structure of the imported data.

Everything that was imported from the given file can be accessed from here. Objects of this class are generally maintained and owned by Assimp, not by the caller. You shouldn't want to instance it, nor should you ever try to delete a given scene on your own.

Layout


struct aiScene {
    unsigned int mFlags;
    struct aiNode * mRootNode;
    unsigned int mNumMeshes;
    struct aiMesh ** mMeshes;
    unsigned int mNumMaterials;
    struct aiMaterial ** mMaterials;
    unsigned int mNumAnimations;
    struct aiAnimation ** mAnimations;
    unsigned int mNumTextures;
    struct aiTexture ** mTextures;
    unsigned int mNumLights;
    struct aiLight ** mLights;
    unsigned int mNumCameras;
    struct aiCamera ** mCameras;
    struct aiMetadata * mMetaData;
    struct aiString mName;
    unsigned int mNumSkeletons;
    struct aiSkeleton ** mSkeletons;
    char * mPrivate;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
AIScene.Buffer

An array of AIScene structs.

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
MANIMATIONS

The struct member offsets.

public static final int
MCAMERAS

The struct member offsets.

public static final int
MFLAGS

The struct member offsets.

public static final int
MLIGHTS

The struct member offsets.

public static final int
MMATERIALS

The struct member offsets.

public static final int
MMESHES

The struct member offsets.

public static final int
MMETADATA

The struct member offsets.

public static final int
MNAME

The struct member offsets.

public static final int
MNUMANIMATIONS

The struct member offsets.

public static final int
MNUMCAMERAS

The struct member offsets.

public static final int
MNUMLIGHTS

The struct member offsets.

public static final int
MNUMMATERIALS

The struct member offsets.

public static final int
MNUMMESHES

The struct member offsets.

public static final int
MNUMSKELETONS

The struct member offsets.

public static final int
MNUMTEXTURES

The struct member offsets.

public static final int
MPRIVATE

The struct member offsets.

public static final int
MROOTNODE

The struct member offsets.

public static final int
MSKELETONS

The struct member offsets.

public static final int
MTEXTURES

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
AIScene(long address, ByteBuffer container)

public
AIScene(ByteBuffer container)

Creates a AIScene instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static AIScene
calloc()

Returns a new AIScene instance allocated with memCalloc.

public static AIScene.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new AIScene.Buffer instance allocated with memCalloc.

public static AIScene
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new AIScene instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static AIScene.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new AIScene.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static AIScene
callocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static AIScene
callocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static AIScene.Buffer
callocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static AIScene.Buffer
callocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
protected AIScene
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static AIScene
create()

Returns a new AIScene instance allocated with BufferUtils.

public static AIScene
create(long address)

Returns a new AIScene instance for the specified memory address.

public static AIScene.Buffer
create(int
the buffer capacity
capacity
)

Returns a new AIScene.Buffer instance allocated with BufferUtils.

public static AIScene.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a AIScene.Buffer instance at the specified memory.

public static AIScene
createSafe(long address)

Like create, but returns null if address is NULL.

public static AIScene.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public static AIScene
malloc()

Returns a new AIScene instance allocated with memAlloc.

public static AIScene.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new AIScene.Buffer instance allocated with memAlloc.

public static AIScene
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new AIScene instance allocated on the specified MemoryStack.

public static AIScene.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new AIScene.Buffer instance allocated on the specified MemoryStack.

public static AIScene
mallocStack()

Deprecated
Deprecated for removal in 3.4.0.
public static AIScene
mallocStack(MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public static AIScene.Buffer
mallocStack(int capacity)

Deprecated
Deprecated for removal in 3.4.0.
public static AIScene.Buffer
mallocStack(int capacity, MemoryStack stack)

Deprecated
Deprecated for removal in 3.4.0.
public PointerBuffer
mAnimations()

The array of animations.

public AIScene
mAnimations(PointerBuffer value)

Sets the address of the specified PointerBuffer to the mAnimations field.

public PointerBuffer
mCameras()

The array of cameras.

public AIScene
mCameras(PointerBuffer value)

Sets the address of the specified PointerBuffer to the mCameras field.

public int
mFlags()

Any combination of the AI_SCENE_FLAGS_XXX flags.

public AIScene
mFlags(int value)

Sets the specified value to the mFlags field.

public PointerBuffer
mLights()

The array of light sources.

public AIScene
mLights(PointerBuffer value)

Sets the address of the specified PointerBuffer to the mLights field.

public PointerBuffer
mMaterials()

The array of materials.

public AIScene
mMaterials(PointerBuffer value)

Sets the address of the specified PointerBuffer to the mMaterials field.

public PointerBuffer
mMeshes()

The array of meshes.

public AIScene
mMeshes(PointerBuffer value)

Sets the address of the specified PointerBuffer to the mMeshes field.

public AIMetaData
mMetaData()

The global metadata assigned to the scene itself.

public AIScene
mMetaData(AIMetaData value)

Sets the address of the specified AIMetaData to the mMetaData field.

public AIString
mName()

The name of the scene itself.

public AIScene
mName(AIString value)

Copies the specified AIString to the mName field.

public AIScene
mName(Consumer<AIString> consumer)

Passes the mName field to the specified Consumer.

public int
mNumAnimations()

The number of animations in the scene.

public int
mNumCameras()

The number of cameras in the scene.

public int
mNumLights()

The number of light sources in the scene.

public int
mNumMaterials()

The number of materials in the scene.

public int
mNumMeshes()

The number of meshes in the scene.

public int

Returns:

the value of the mNumSkeletons field.
mNumSkeletons
()

public int
mNumTextures()

The number of textures embedded into the file

public AINode
mRootNode()

The root node of the hierarchy.

public AIScene
mRootNode(AINode value)

Sets the address of the specified AINode to the mRootNode field.

public PointerBuffer

Returns:

a PointerBuffer view of the data pointed to by the mSkeletons field.
mSkeletons
()

public AIScene
mSkeletons(PointerBuffer value)

Sets the address of the specified PointerBuffer to the mSkeletons field.

public PointerBuffer
mTextures()

The array of embedded textures.

public AIScene
mTextures(PointerBuffer value)

Sets the address of the specified PointerBuffer to the mTextures field.

public static PointerBuffer
nmAnimations(long struct)

Unsafe version of mAnimations.

public static void
nmAnimations(long struct, PointerBuffer value)

Unsafe version of mAnimations.

public static PointerBuffer
nmCameras(long struct)

Unsafe version of mCameras.

public static void
nmCameras(long struct, PointerBuffer value)

Unsafe version of mCameras.

public static int
nmFlags(long struct)

Unsafe version of mFlags.

public static void
nmFlags(long struct, int value)

Unsafe version of mFlags.

public static PointerBuffer
nmLights(long struct)

Unsafe version of mLights.

public static void
nmLights(long struct, PointerBuffer value)

Unsafe version of mLights.

public static PointerBuffer
nmMaterials(long struct)

Unsafe version of mMaterials.

public static void
nmMaterials(long struct, PointerBuffer value)

Unsafe version of mMaterials.

public static PointerBuffer
nmMeshes(long struct)

Unsafe version of mMeshes.

public static void
nmMeshes(long struct, PointerBuffer value)

Unsafe version of mMeshes.

public static AIMetaData
nmMetaData(long struct)

Unsafe version of mMetaData.

public static void
nmMetaData(long struct, AIMetaData value)

Unsafe version of mMetaData.

public static AIString
nmName(long struct)

Unsafe version of mName.

public static void
nmName(long struct, AIString value)

Unsafe version of mName.

public static int
nmNumAnimations(long struct)

Unsafe version of mNumAnimations.

public static void
nmNumAnimations(long struct, int value)

Sets the specified value to the mNumAnimations field of the specified struct.

public static int
nmNumCameras(long struct)

Unsafe version of mNumCameras.

public static void
nmNumCameras(long struct, int value)

Sets the specified value to the mNumCameras field of the specified struct.

public static int
nmNumLights(long struct)

Unsafe version of mNumLights.

public static void
nmNumLights(long struct, int value)

Sets the specified value to the mNumLights field of the specified struct.

public static int
nmNumMaterials(long struct)

Unsafe version of mNumMaterials.

public static void
nmNumMaterials(long struct, int value)

Sets the specified value to the mNumMaterials field of the specified struct.

public static int
nmNumMeshes(long struct)

Unsafe version of mNumMeshes.

public static void
nmNumMeshes(long struct, int value)

Sets the specified value to the mNumMeshes field of the specified struct.

public static int
nmNumSkeletons(long struct)

Unsafe version of mNumSkeletons.

public static void
nmNumSkeletons(long struct, int value)

Sets the specified value to the mNumSkeletons field of the specified struct.

public static int
nmNumTextures(long struct)

Unsafe version of mNumTextures.

public static void
nmNumTextures(long struct, int value)

Sets the specified value to the mNumTextures field of the specified struct.

public static ByteBuffer
nmPrivate(long struct, int capacity)

public static void
nmPrivate(long struct, ByteBuffer value)

public static AINode
nmRootNode(long struct)

Unsafe version of mRootNode.

public static void
nmRootNode(long struct, AINode value)

Unsafe version of mRootNode.

public static PointerBuffer
nmSkeletons(long struct)

Unsafe version of mSkeletons.

public static void
nmSkeletons(long struct, PointerBuffer value)

Unsafe version of mSkeletons.

public static PointerBuffer
nmTextures(long struct)

Unsafe version of mTextures.

public static void
nmTextures(long struct, PointerBuffer value)

Unsafe version of mTextures.

public AIScene
set(int mFlags, AINode mRootNode, PointerBuffer mMeshes, PointerBuffer mMaterials, PointerBuffer mAnimations, PointerBuffer mTextures, PointerBuffer mLights, PointerBuffer mCameras, AIMetaData mMetaData, AIString mName, PointerBuffer mSkeletons)

Initializes this struct with the specified values.

public AIScene

Returns:

this struct
set
(AIScene
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate