public class AIScene
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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.
mFlags – Any combination of the AI_SCENE_FLAGS_XXX flags. By default this value is 0, no flags are set. Most applications will want to reject all scenes with
the AI_SCENE_FLAGS_INCOMPLETE bit set. One or more of:Assimp.AI_SCENE_FLAGS_INCOMPLETE | Assimp.AI_SCENE_FLAGS_VALIDATED |
Assimp.AI_SCENE_FLAGS_VALIDATION_WARNING | Assimp.AI_SCENE_FLAGS_NON_VERBOSE_FORMAT |
Assimp.AI_SCENE_FLAGS_TERRAIN |
mRootNode –
The root node of the hierarchy. There will always be at least the root node if the import was successful (and no special flags have been set). Presence
of further nodes depends on the format and content of the imported file.mNumMeshes – The number of meshes in the scene.mMeshes –
The array of meshes. Use the indices given in the AINode structure to access this array. The array is mNumMeshes in size. If the
Assimp.AI_SCENE_FLAGS_INCOMPLETE flag is not set there will always be at least ONE material.mNumMaterials – The number of materials in the scene.mMaterials –
The array of materials. Use the index given in each AIMesh structure to access this array. The array is mNumMaterials in size. If the
Assimp.AI_SCENE_FLAGS_INCOMPLETE flag is not set there will always be at least ONE material.mNumAnimations – The number of animations in the scene.mAnimations – The array of animations. All animations imported from the given file are listed here. The array is mNumAnimations in size.mNumTextures – The number of textures embedded into the filemTextures –
The array of embedded textures. Not many file formats embed their textures into the file. An example is Quake's MDL format (which is also used by some
GameStudio versions)mNumLights – The number of light sources in the scene. Light sources are fully optional, in most cases this attribute will be 0mLights – The array of light sources. All light sources imported from the given file are listed here. The array is mNumLights in size.mNumCameras – The number of cameras in the scene. Cameras are fully optional, in most cases this attribute will be 0mCameras –
The array of cameras. All cameras imported from the given file are listed here. The array is mNumCameras in size. The first camera in the array
(if existing) is the default camera view into the scene.mMetaData –
The global metadata assigned to the scene itself.
This data contains global metadata which belongs to the scene like unit-conversions, versions, vendors or other model-specific data. This can be used to store format-specific metadata as well.
mPrivate – Internal use only, do not touch!
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;
char * mPrivate;
}| Modifier and Type | Class and Description |
|---|---|
static class |
AIScene.Buffer
An array of
AIScene structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
MANIMATIONS
The struct member offsets.
|
static int |
MCAMERAS
The struct member offsets.
|
static int |
MFLAGS
The struct member offsets.
|
static int |
MLIGHTS
The struct member offsets.
|
static int |
MMATERIALS
The struct member offsets.
|
static int |
MMESHES
The struct member offsets.
|
static int |
MMETADATA
The struct member offsets.
|
static int |
MNUMANIMATIONS
The struct member offsets.
|
static int |
MNUMCAMERAS
The struct member offsets.
|
static int |
MNUMLIGHTS
The struct member offsets.
|
static int |
MNUMMATERIALS
The struct member offsets.
|
static int |
MNUMMESHES
The struct member offsets.
|
static int |
MNUMTEXTURES
The struct member offsets.
|
static int |
MPRIVATE
The struct member offsets.
|
static int |
MROOTNODE
The struct member offsets.
|
static int |
MTEXTURES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
| Constructor and Description |
|---|
AIScene(java.nio.ByteBuffer container)
Creates a
AIScene instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static AIScene |
calloc()
Returns a new
AIScene instance allocated with memCalloc. |
static AIScene.Buffer |
calloc(int capacity)
Returns a new
AIScene.Buffer instance allocated with memCalloc. |
static AIScene |
callocStack()
Returns a new
AIScene instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIScene.Buffer |
callocStack(int capacity)
Returns a new
AIScene.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static AIScene.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIScene.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIScene |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIScene instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static AIScene |
create()
Returns a new
AIScene instance allocated with BufferUtils. |
static AIScene.Buffer |
create(int capacity)
Returns a new
AIScene.Buffer instance allocated with BufferUtils. |
static AIScene |
create(long address)
Returns a new
AIScene instance for the specified memory address. |
static AIScene.Buffer |
create(long address,
int capacity)
Create a
AIScene.Buffer instance at the specified memory. |
static AIScene |
createSafe(long address)
|
static AIScene.Buffer |
createSafe(long address,
int capacity)
|
static AIScene |
malloc()
Returns a new
AIScene instance allocated with memAlloc. |
static AIScene.Buffer |
malloc(int capacity)
Returns a new
AIScene.Buffer instance allocated with memAlloc. |
static AIScene |
mallocStack()
Returns a new
AIScene instance allocated on the thread-local MemoryStack. |
static AIScene.Buffer |
mallocStack(int capacity)
Returns a new
AIScene.Buffer instance allocated on the thread-local MemoryStack. |
static AIScene.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
AIScene.Buffer instance allocated on the specified MemoryStack. |
static AIScene |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
AIScene instance allocated on the specified MemoryStack. |
org.lwjgl.PointerBuffer |
mAnimations()
Returns a
PointerBuffer view of the data pointed to by the mAnimations field. |
AIScene |
mAnimations(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the mAnimations field. |
org.lwjgl.PointerBuffer |
mCameras()
Returns a
PointerBuffer view of the data pointed to by the mCameras field. |
AIScene |
mCameras(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the mCameras field. |
int |
mFlags()
Returns the value of the
mFlags field. |
AIScene |
mFlags(int value)
Sets the specified value to the
mFlags field. |
org.lwjgl.PointerBuffer |
mLights()
Returns a
PointerBuffer view of the data pointed to by the mLights field. |
AIScene |
mLights(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the mLights field. |
org.lwjgl.PointerBuffer |
mMaterials()
Returns a
PointerBuffer view of the data pointed to by the mMaterials field. |
AIScene |
mMaterials(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the mMaterials field. |
org.lwjgl.PointerBuffer |
mMeshes()
Returns a
PointerBuffer view of the data pointed to by the mMeshes field. |
AIScene |
mMeshes(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the mMeshes field. |
AIMetaData |
mMetaData()
Returns a
AIMetaData view of the struct pointed to by the mMetaData field. |
AIScene |
mMetaData(AIMetaData value)
Sets the address of the specified
AIMetaData to the mMetaData field. |
int |
mNumAnimations()
Returns the value of the
mNumAnimations field. |
int |
mNumCameras()
Returns the value of the
mNumCameras field. |
int |
mNumLights()
Returns the value of the
mNumLights field. |
int |
mNumMaterials()
Returns the value of the
mNumMaterials field. |
int |
mNumMeshes()
Returns the value of the
mNumMeshes field. |
int |
mNumTextures()
Returns the value of the
mNumTextures field. |
AINode |
mRootNode()
Returns a
AINode view of the struct pointed to by the mRootNode field. |
AIScene |
mRootNode(AINode value)
Sets the address of the specified
AINode to the mRootNode field. |
org.lwjgl.PointerBuffer |
mTextures()
Returns a
PointerBuffer view of the data pointed to by the mTextures field. |
AIScene |
mTextures(org.lwjgl.PointerBuffer value)
Sets the address of the specified
PointerBuffer to the mTextures field. |
static org.lwjgl.PointerBuffer |
nmAnimations(long struct)
Unsafe version of
mAnimations. |
static void |
nmAnimations(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
mAnimations. |
static org.lwjgl.PointerBuffer |
nmCameras(long struct)
Unsafe version of
mCameras. |
static void |
nmCameras(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
mCameras. |
static int |
nmFlags(long struct)
Unsafe version of
mFlags(). |
static void |
nmFlags(long struct,
int value)
Unsafe version of
mFlags. |
static org.lwjgl.PointerBuffer |
nmLights(long struct)
Unsafe version of
mLights. |
static void |
nmLights(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
mLights. |
static org.lwjgl.PointerBuffer |
nmMaterials(long struct)
Unsafe version of
mMaterials. |
static void |
nmMaterials(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
mMaterials. |
static org.lwjgl.PointerBuffer |
nmMeshes(long struct)
Unsafe version of
mMeshes. |
static void |
nmMeshes(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
mMeshes. |
static AIMetaData |
nmMetaData(long struct)
Unsafe version of
mMetaData(). |
static void |
nmMetaData(long struct,
AIMetaData value)
Unsafe version of
mMetaData. |
static int |
nmNumAnimations(long struct)
Unsafe version of
mNumAnimations(). |
static void |
nmNumAnimations(long struct,
int value)
Sets the specified value to the
mNumAnimations field of the specified struct. |
static int |
nmNumCameras(long struct)
Unsafe version of
mNumCameras(). |
static void |
nmNumCameras(long struct,
int value)
Sets the specified value to the
mNumCameras field of the specified struct. |
static int |
nmNumLights(long struct)
Unsafe version of
mNumLights(). |
static void |
nmNumLights(long struct,
int value)
Sets the specified value to the
mNumLights field of the specified struct. |
static int |
nmNumMaterials(long struct)
Unsafe version of
mNumMaterials(). |
static void |
nmNumMaterials(long struct,
int value)
Sets the specified value to the
mNumMaterials field of the specified struct. |
static int |
nmNumMeshes(long struct)
Unsafe version of
mNumMeshes(). |
static void |
nmNumMeshes(long struct,
int value)
Sets the specified value to the
mNumMeshes field of the specified struct. |
static int |
nmNumTextures(long struct)
Unsafe version of
mNumTextures(). |
static void |
nmNumTextures(long struct,
int value)
Sets the specified value to the
mNumTextures field of the specified struct. |
static void |
nmPrivate(long struct,
java.nio.ByteBuffer value) |
static java.nio.ByteBuffer |
nmPrivate(long struct,
int capacity) |
static AINode |
nmRootNode(long struct)
Unsafe version of
mRootNode(). |
static void |
nmRootNode(long struct,
AINode value)
Unsafe version of
mRootNode. |
static org.lwjgl.PointerBuffer |
nmTextures(long struct)
Unsafe version of
mTextures. |
static void |
nmTextures(long struct,
org.lwjgl.PointerBuffer value)
Unsafe version of
mTextures. |
AIScene |
set(AIScene src)
Copies the specified struct data to this struct.
|
AIScene |
set(int mFlags,
AINode mRootNode,
org.lwjgl.PointerBuffer mMeshes,
org.lwjgl.PointerBuffer mMaterials,
org.lwjgl.PointerBuffer mAnimations,
org.lwjgl.PointerBuffer mTextures,
org.lwjgl.PointerBuffer mLights,
org.lwjgl.PointerBuffer mCameras,
AIMetaData mMetaData)
Initializes this struct with the specified values.
|
int |
sizeof() |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int MFLAGS
public static final int MROOTNODE
public static final int MNUMMESHES
public static final int MMESHES
public static final int MNUMMATERIALS
public static final int MMATERIALS
public static final int MNUMANIMATIONS
public static final int MANIMATIONS
public static final int MNUMTEXTURES
public static final int MTEXTURES
public static final int MNUMLIGHTS
public static final int MLIGHTS
public static final int MNUMCAMERAS
public static final int MCAMERAS
public static final int MMETADATA
public static final int MPRIVATE
public AIScene(java.nio.ByteBuffer container)
AIScene instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int mFlags()
mFlags field.@Nullable public AINode mRootNode()
AINode view of the struct pointed to by the mRootNode field.public int mNumMeshes()
mNumMeshes field.@Nullable public org.lwjgl.PointerBuffer mMeshes()
PointerBuffer view of the data pointed to by the mMeshes field.public int mNumMaterials()
mNumMaterials field.@Nullable public org.lwjgl.PointerBuffer mMaterials()
PointerBuffer view of the data pointed to by the mMaterials field.public int mNumAnimations()
mNumAnimations field.@Nullable public org.lwjgl.PointerBuffer mAnimations()
PointerBuffer view of the data pointed to by the mAnimations field.public int mNumTextures()
mNumTextures field.@Nullable public org.lwjgl.PointerBuffer mTextures()
PointerBuffer view of the data pointed to by the mTextures field.public int mNumLights()
mNumLights field.@Nullable public org.lwjgl.PointerBuffer mLights()
PointerBuffer view of the data pointed to by the mLights field.public int mNumCameras()
mNumCameras field.@Nullable public org.lwjgl.PointerBuffer mCameras()
PointerBuffer view of the data pointed to by the mCameras field.@Nullable public AIMetaData mMetaData()
AIMetaData view of the struct pointed to by the mMetaData field.public AIScene mFlags(int value)
mFlags field.public AIScene mRootNode(@Nullable AINode value)
AINode to the mRootNode field.public AIScene mMeshes(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the mMeshes field.public AIScene mMaterials(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the mMaterials field.public AIScene mAnimations(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the mAnimations field.public AIScene mTextures(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the mTextures field.public AIScene mLights(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the mLights field.public AIScene mCameras(@Nullable org.lwjgl.PointerBuffer value)
PointerBuffer to the mCameras field.public AIScene mMetaData(@Nullable AIMetaData value)
AIMetaData to the mMetaData field.public AIScene set(int mFlags, @Nullable AINode mRootNode, @Nullable org.lwjgl.PointerBuffer mMeshes, @Nullable org.lwjgl.PointerBuffer mMaterials, @Nullable org.lwjgl.PointerBuffer mAnimations, @Nullable org.lwjgl.PointerBuffer mTextures, @Nullable org.lwjgl.PointerBuffer mLights, @Nullable org.lwjgl.PointerBuffer mCameras, @Nullable AIMetaData mMetaData)
public AIScene set(AIScene src)
src - the source structpublic static AIScene malloc()
AIScene instance allocated with memAlloc. The instance must be explicitly freed.public static AIScene calloc()
AIScene instance allocated with memCalloc. The instance must be explicitly freed.public static AIScene create()
AIScene instance allocated with BufferUtils.public static AIScene create(long address)
AIScene instance for the specified memory address.@Nullable public static AIScene createSafe(long address)
public static AIScene.Buffer malloc(int capacity)
AIScene.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIScene.Buffer calloc(int capacity)
AIScene.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static AIScene.Buffer create(int capacity)
AIScene.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static AIScene.Buffer create(long address, int capacity)
AIScene.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static AIScene.Buffer createSafe(long address, int capacity)
public static AIScene mallocStack()
AIScene instance allocated on the thread-local MemoryStack.public static AIScene callocStack()
AIScene instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static AIScene mallocStack(org.lwjgl.system.MemoryStack stack)
AIScene instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static AIScene callocStack(org.lwjgl.system.MemoryStack stack)
AIScene instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static AIScene.Buffer mallocStack(int capacity)
AIScene.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static AIScene.Buffer callocStack(int capacity)
AIScene.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static AIScene.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIScene.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static AIScene.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
AIScene.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nmFlags(long struct)
mFlags().@Nullable public static AINode nmRootNode(long struct)
mRootNode().public static int nmNumMeshes(long struct)
mNumMeshes().@Nullable public static org.lwjgl.PointerBuffer nmMeshes(long struct)
mMeshes.public static int nmNumMaterials(long struct)
mNumMaterials().@Nullable public static org.lwjgl.PointerBuffer nmMaterials(long struct)
mMaterials.public static int nmNumAnimations(long struct)
mNumAnimations().@Nullable public static org.lwjgl.PointerBuffer nmAnimations(long struct)
mAnimations.public static int nmNumTextures(long struct)
mNumTextures().@Nullable public static org.lwjgl.PointerBuffer nmTextures(long struct)
mTextures.public static int nmNumLights(long struct)
mNumLights().@Nullable public static org.lwjgl.PointerBuffer nmLights(long struct)
mLights.public static int nmNumCameras(long struct)
mNumCameras().@Nullable public static org.lwjgl.PointerBuffer nmCameras(long struct)
mCameras.@Nullable public static AIMetaData nmMetaData(long struct)
mMetaData().public static java.nio.ByteBuffer nmPrivate(long struct,
int capacity)
public static void nmFlags(long struct,
int value)
mFlags.public static void nmRootNode(long struct,
@Nullable
AINode value)
mRootNode.public static void nmNumMeshes(long struct,
int value)
mNumMeshes field of the specified struct.public static void nmMeshes(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
mMeshes.public static void nmNumMaterials(long struct,
int value)
mNumMaterials field of the specified struct.public static void nmMaterials(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
mMaterials.public static void nmNumAnimations(long struct,
int value)
mNumAnimations field of the specified struct.public static void nmAnimations(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
mAnimations.public static void nmNumTextures(long struct,
int value)
mNumTextures field of the specified struct.public static void nmTextures(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
mTextures.public static void nmNumLights(long struct,
int value)
mNumLights field of the specified struct.public static void nmLights(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
mLights.public static void nmNumCameras(long struct,
int value)
mNumCameras field of the specified struct.public static void nmCameras(long struct,
@Nullable
org.lwjgl.PointerBuffer value)
mCameras.public static void nmMetaData(long struct,
@Nullable
AIMetaData value)
mMetaData.public static void nmPrivate(long struct,
java.nio.ByteBuffer value)
public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.