|
Turbo Engine 0.3
A C++ game engine using Allegro 5
|
#include <SceneManager.hpp>
Public Member Functions | |
| SceneManager () | |
| void | register_scene (Scene *scene, const char *name) |
| Register a scene in the manager. | |
| void | set_active_scene (const char *name) |
| Set the scene currently displayed. | |
| Scene * | get_active_scene () const |
| Retrieves the currently displayed scene. | |
| const std::string & | get_active_scene_name () const |
| Name under which the active scene was registered (empty if none). | |
| ONLYIMGUI (debug::SceneManagerDebug debug) | |
Manage the scene instances
| turbo::SceneManager::SceneManager | ( | ) |
| Scene * turbo::SceneManager::get_active_scene | ( | ) | const |
Retrieves the currently displayed scene.
| const std::string & turbo::SceneManager::get_active_scene_name | ( | ) | const |
Name under which the active scene was registered (empty if none).
| turbo::SceneManager::ONLYIMGUI | ( | debug::SceneManagerDebug | debug | ) |
| void turbo::SceneManager::register_scene | ( | Scene * | scene, |
| const char * | name ) |
Register a scene in the manager.
| scene | The target scene |
| name | The name of the scene (used to identify the scene in the registry) |
| void turbo::SceneManager::set_active_scene | ( | const char * | name | ) |
Set the scene currently displayed.
| name | Name of the scene |