47 #ifndef AI_SCENE_H_INC 48 #define AI_SCENE_H_INC 64 #pragma GCC diagnostic push 65 #pragma GCC diagnostic ignored "-Wattributes" 136 explicit aiNode(
const std::string& name);
150 return FindNode(name.
data);
155 return FindNode(name.
data);
158 const aiNode* FindNode(
const char* name)
const;
160 aiNode* FindNode(
const char* name);
167 void addChildren(
unsigned int numChildren,
aiNode **children);
168 #endif // __cplusplus 172 #pragma GCC diagnostic pop 182 #define AI_SCENE_FLAGS_INCOMPLETE 0x1 189 #define AI_SCENE_FLAGS_VALIDATED 0x2 199 #define AI_SCENE_FLAGS_VALIDATION_WARNING 0x4 207 #define AI_SCENE_FLAGS_NON_VERBOSE_FORMAT 0x8 221 #define AI_SCENE_FLAGS_TERRAIN 0x10 229 #define AI_SCENE_FLAGS_ALLOW_SHARED 0x20 339 inline bool HasMeshes()
const {
340 return mMeshes != NULL && mNumMeshes > 0;
345 inline bool HasMaterials()
const {
346 return mMaterials != NULL && mNumMaterials > 0;
350 inline bool HasLights()
const {
351 return mLights != NULL && mNumLights > 0;
355 inline bool HasTextures()
const {
356 return mTextures != NULL && mNumTextures > 0;
360 inline bool HasCameras()
const {
361 return mCameras != NULL && mNumCameras > 0;
365 inline bool HasAnimations()
const {
366 return mAnimations != NULL && mNumAnimations > 0;
369 #endif // __cplusplus 384 #endif // AI_SCENE_H_INC unsigned int mNumLights
The number of light sources in the scene.
Definition: scene.h:306
unsigned int mNumMeshes
The number of meshes of this node.
Definition: scene.h:117
An animation consists of key-frame data for a number of nodes.
Definition: anim.h:411
Basic data types and primitives, such as vectors or colors.
Defines the material system of the library.
A node in the imported hierarchy.
Definition: scene.h:78
Definition: matrix4x4.h:269
enum aiMorphingMethod
Definition: mesh.h:496
Helper structure to describe a light source.
Definition: light.h:113
unsigned int mFlags
Any combination of the AI_SCENE_FLAGS_XXX flags.
Definition: scene.h:247
Defines the aiCamera data structure.
Helper structure to describe a virtual camera.
Definition: camera.h:100
Declares the data structures in which the imported geometry is returned by ASSIMP: aiMesh...
Defines texture helper structures for the library.
unsigned int mNumMaterials
The number of materials in the scene.
Definition: scene.h:271
Defines the aiLight data structure.
unsigned int mNumMeshes
The number of meshes in the scene.
Definition: scene.h:259
char * mPrivate
Internal data, do not touch.
Definition: scene.h:375
Represents an UTF-8 string, zero byte terminated.
Definition: types.h:252
Defines the data structures in which the imported animations are returned.
Helper structure to describe an embedded texture.
Definition: texture.h:133
unsigned int * mMeshes
The meshes of this node.
Definition: scene.h:122
unsigned int mNumChildren
The number of child nodes of this node.
Definition: scene.h:111
The root structure of the imported data.
Definition: scene.h:240
unsigned int mNumTextures
The number of textures embedded into the file.
Definition: scene.h:293
char data[MAXLEN]
String buffer.
Definition: types.h:367
unsigned int mNumCameras
The number of cameras in the scene.
Definition: scene.h:318
Data structure for a material.
Definition: material.h:642
unsigned int mNumAnimations
The number of animations in the scene.
Definition: scene.h:283