Singleton responsible for getting scenes and scene swapping. More...
#include <SceneManager.h>
Static Public Member Functions | |
static Scene * | GetCurrScene () |
Returns pointer to current scene. | |
static void | SetStartScene (Scene *start) |
Sets pointer to start scene. | |
static void | SetNextScene (Scene *next) |
Changes to new Scene. | |
Singleton responsible for getting scenes and scene swapping.
|
static |
Returns pointer to current scene.
|
static |
Changes to new Scene.
Called when wanting to change to a new scene. When called, this function will call SceneEnd on the current scene and call Initialize on the new scene.
next |
|
static |
Sets pointer to start scene.
Sets the starting scene to be a specified scene. This will normally be done in Game::LoadResources. If a start scene is not set in Game::LoadResources, then a blank scene will be created with the Game::SetClear being the main color.
start |