CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::SceneManager Class Reference

A manager that references and manages mutliple scenes. More...

#include <CeresEngine/Scene/Scene.hpp>

Public Member Functions

void add (const HScene &scene)
 Adds a new scene to the manager.
 
void add (const ScenePtr &scene)
 Adds a new scene to the manager.
 
void add (Scene *const scene)
 Adds a new scene to the manager.
 
void remove (const HScene &scene)
 Removes a scene from the manager.
 
void remove (const ScenePtr &scene)
 Adds a new scene to the manager.
 
void remove (Scene *const scene)
 Removes a scene from the manager.
 
void simulate (double dt)
 Simulates all scenes registered.
 

Private Attributes

Vector< Scene * > mScenes
 A vector of all registered scenes.
 

Friends

class Scene
 

Detailed Description

A manager that references and manages mutliple scenes.

Member Function Documentation

◆ add() [1/3]

void CeresEngine::SceneManager::add ( const HScene scene)
inline

Adds a new scene to the manager.

◆ add() [2/3]

void CeresEngine::SceneManager::add ( const ScenePtr scene)
inline

Adds a new scene to the manager.

◆ add() [3/3]

void CeresEngine::SceneManager::add ( Scene *const  scene)

Adds a new scene to the manager.

◆ remove() [1/3]

void CeresEngine::SceneManager::remove ( const HScene scene)
inline

Removes a scene from the manager.

◆ remove() [2/3]

void CeresEngine::SceneManager::remove ( const ScenePtr scene)
inline

Adds a new scene to the manager.

◆ remove() [3/3]

void CeresEngine::SceneManager::remove ( Scene *const  scene)

Removes a scene from the manager.

◆ simulate()

void CeresEngine::SceneManager::simulate ( double  dt)

Simulates all scenes registered.

Parameters
dtThe time step sicne the last simulation run.

Friends And Related Symbol Documentation

◆ Scene

friend class Scene
friend

Member Data Documentation

◆ mScenes

Vector<Scene*> CeresEngine::SceneManager::mScenes
private

A vector of all registered scenes.


The documentation for this class was generated from the following file: