38 void SetScene(std::unique_ptr<Scene> scene);
57 void Update(
float deltaTime);
59 void Ui(
float deltaTime);
61 void Render(
float deltaTime);
Manages scenes for the application.
Definition: scenemanager.h:27
void SwitchScene()
Sets the next scene to the current.
Definition: scenemanager.cpp:36
void Render(float deltaTime)
Definition: scenemanager.cpp:58
bool ToSwitchScene()
Verifies if it is appropiate to switch scenes.
Definition: scenemanager.h:55
void SetInitialScene(std::unique_ptr< Scene > scene)
Sets the current scene.
Definition: scenemanager.cpp:29
void SetScene(std::unique_ptr< Scene > scene)
Sets the next scene, and the scene will be switched when SwitchScene is executed.
Definition: scenemanager.cpp:31
std::unique_ptr< Scene > m_scene
Definition: scenemanager.h:66
bool m_switch
If the next scene has been set.
Definition: scenemanager.h:72
void Update(float deltaTime)
Definition: scenemanager.cpp:48
void DeleteCurrentScene()
Definition: scenemanager.cpp:46
Scene * GetScene()
Gets current running scene.
Definition: scenemanager.cpp:44
std::unique_ptr< Scene > m_next_scene
Definition: scenemanager.h:67
void Ui(float deltaTime)
Definition: scenemanager.cpp:53
Definition: application.cpp:55