Castor3D
..
|
Classes | |
class | BinaryParser |
Sampler loader. More... | |
class | TextLoader |
Scene loader. More... | |
Public Member Functions | |
C3D_API | Scene (Castor::String const &p_name, Engine &p_engine) |
Constructor. More... | |
C3D_API | ~Scene () |
Destructor. More... | |
C3D_API void | Initialise () |
Initialises the scene. More... | |
C3D_API void | Cleanup () |
Clears the maps, leaves the root nodes. More... | |
C3D_API void | RenderBackground (Castor::Size const &p_size) |
Renders the scene background. More... | |
C3D_API void | Update () |
Updates the scene before render. More... | |
C3D_API bool | SetBackgroundImage (Castor::Path const &p_pathFile) |
Sets the background image for the scene. More... | |
C3D_API bool | ImportExternal (Castor::String const &p_fileName, Importer &p_importer) |
Imports a scene from an foreign file. More... | |
C3D_API MeshSPtr | ImportMesh (Castor::Path const &p_fileName, Importer &p_importer, Parameters const &p_parameters) |
Mesh import Function. More... | |
C3D_API void | Merge (SceneSPtr p_scene) |
Merges the content of the given scene to this scene. More... | |
C3D_API void | AddOverlay (OverlaySPtr p_overlay) |
Adds an overlay to the list. More... | |
C3D_API uint32_t | GetVertexCount () const |
Retrieves the vertices count. More... | |
C3D_API uint32_t | GetFaceCount () const |
Retrieves the faces count. More... | |
void | SetBackgroundColour (Castor::Colour const &p_clrNew) |
Sets the background colour. More... | |
Castor::Colour const & | GetBackgroundColour () const |
Retrieves the background colour. More... | |
SceneNodeSPtr | GetRootNode () const |
Retrieves the root node. More... | |
SceneNodeSPtr | GetCameraRootNode () const |
Retrieves the cameras root node. More... | |
SceneNodeSPtr | GetObjectRootNode () const |
Retrieves the objects root node. More... | |
TextureSPtr | GetBackgroundImage () const |
Retrieves the scene background image. More... | |
bool | HasChanged () const |
Retrieves the scene change status. More... | |
void | SetChanged () |
Sets the scene changed status to true . More... | |
Castor::Colour const & | GetAmbientLight () const |
void | SetAmbientLight (Castor::Colour const &p_value) |
Sets the ambient light colour. More... | |
Scene handler class.
C3D_API Castor3D::Scene::Scene | ( | Castor::String const & | p_name, |
Engine & | p_engine | ||
) |
Constructor.
[in] | p_name | The scene name |
[in] | p_engine | The core engine |
C3D_API Castor3D::Scene::~Scene | ( | ) |
Destructor.
C3D_API void Castor3D::Scene::AddOverlay | ( | OverlaySPtr | p_overlay | ) |
Adds an overlay to the list.
[in] | p_overlay | The overlay to add |
C3D_API void Castor3D::Scene::Cleanup | ( | ) |
Clears the maps, leaves the root nodes.
|
inline |
|
inline |
Retrieves the background colour.
|
inline |
Retrieves the scene background image.
|
inline |
Retrieves the cameras root node.
C3D_API uint32_t Castor3D::Scene::GetFaceCount | ( | ) | const |
Retrieves the faces count.
|
inline |
Retrieves the objects root node.
|
inline |
Retrieves the root node.
C3D_API uint32_t Castor3D::Scene::GetVertexCount | ( | ) | const |
Retrieves the vertices count.
|
inline |
Retrieves the scene change status.
C3D_API bool Castor3D::Scene::ImportExternal | ( | Castor::String const & | p_fileName, |
Importer & | p_importer | ||
) |
Imports a scene from an foreign file.
[in] | p_fileName | file to read from |
[in] | p_importer | The importer, which is in charge of loading the scene |
true
if successful, false if not C3D_API MeshSPtr Castor3D::Scene::ImportMesh | ( | Castor::Path const & | p_fileName, |
Importer & | p_importer, | ||
Parameters const & | p_parameters | ||
) |
C3D_API void Castor3D::Scene::Initialise | ( | ) |
Initialises the scene.
C3D_API void Castor3D::Scene::Merge | ( | SceneSPtr | p_scene | ) |
Merges the content of the given scene to this scene.
[in] | p_scene | The scene to merge into this one |
C3D_API void Castor3D::Scene::RenderBackground | ( | Castor::Size const & | p_size | ) |
Renders the scene background.
[in] | p_size | The target dimensions. |
|
inline |
Sets the ambient light colour.
[in] | p_value | The new value. |
|
inline |
Sets the background colour.
[in] | p_clrNew | The new colour |
C3D_API bool Castor3D::Scene::SetBackgroundImage | ( | Castor::Path const & | p_pathFile | ) |
Sets the background image for the scene.
[in] | p_pathFile | The image file path |
|
inline |
Sets the scene changed status to true
.
C3D_API void Castor3D::Scene::Update | ( | ) |
Updates the scene before render.