The scene manager controls which scene is currently displayed, in addition to enumerating the scenes currently loaded into memory. It can be accessed from the global application instance.
More...
#include <SceneManager.h>
The scene manager controls which scene is currently displayed, in addition to enumerating the scenes currently loaded into memory. It can be accessed from the global application instance.
◆ SceneManager()
| SceneManager::SceneManager |
( |
| ) |
|
◆ ~SceneManager()
| SceneManager::~SceneManager |
( |
| ) |
|
◆ getCurrentScene()
◆ registerScene()
| void SceneManager::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.
- Parameters
-
| sceneName | The scene identifier |
| scene | The scene object |
◆ setCurrentScene()
| void SceneManager::setCurrentScene |
( |
std::string |
sceneName | ) |
|
Change the currently displayed scene. It has to be registered through registerScene before you can display it.
- Parameters
-
| sceneName | The name of the scene. |
◆ unregisterScene() [1/2]
Unregister a scene.
- Parameters
-
◆ unregisterScene() [2/2]
| void SceneManager::unregisterScene |
( |
const std::string & |
sceneName | ) |
|
Unregister a scene.
- Parameters
-
The documentation for this class was generated from the following files: