|
| SceneManager () |
| Constructor for the SceneManager class.
|
|
template<typename SceneType , typename... Args> |
void | registerScene (const T sceneId, Args &&... args) |
| Register a scene to be managed by the scene engine.
|
|
void | setNextScene (const T sceneId) |
| Set the next scene.
|
|
void | start () |
| Main loop for the scene engine. If this is not enough, or you want to define your own loop, you can use the update and draw functions directly.
|
|
void | update (const float deltaTime) |
| Update the current scene.
|
|
void | draw () |
| Draw the current scene.
|
|
int | getFPS () const |
| Get the current FPS. Only applies to the managed loop.
|
|
template<typename T>
class asw::scene::SceneManager< T >
Forward declaration of the SceneManager class.
SceneManager class for managing game scenes.
- Template Parameters
-
T | The type of the scene ID. |
This class manages the registration, updating, and drawing of game scenes. It also handles the transition between scenes.
Definition at line 189 of file scene.h.