51 std::map<std::string, GraphicsScene*> registeredScenes;
~SceneManager()
Definition: SceneManager.cpp:49
SceneManager()
Definition: SceneManager.cpp:3
void setCurrentScene(std::string sceneName)
Change the currently displayed scene. It has to be registered through registerScene before you can di...
Definition: SceneManager.cpp:7
void registerScene(const std::string &sceneName, GraphicsScene *scene)
Register a scene for displaying it later. It will NOT take ownership of the scene, so it's your job to free its memory later, if needed.
Definition: SceneManager.cpp:20
The GraphicsScene base class.
GraphicsScene * getCurrentScene()
Definition: SceneManager.cpp:15
The scene manager controls which scene is currently displayed, in addition to enumerating the scenes ...
Definition: SceneManager.h:22
void unregisterScene(GraphicsScene *scene)
Unregister a scene.
Definition: SceneManager.cpp:37
The Scene object is a base class to construct a Scene upon. The scene is basically a view that can be...
Definition: GraphicsScene.h:27