39 void SetScene(std::unique_ptr<Scene> scene);
58 void Update(
float deltaTime);
60 void Ui(
float deltaTime);
62 void Render(
float deltaTime);
Manages scenes for the application.
Definition: scenemanager.h:28
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:56
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:67
bool m_switch
If the next scene has been set.
Definition: scenemanager.h:73
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:68
void Ui(float deltaTime)
Definition: scenemanager.cpp:53
When adding assets, it is extremely crucial that you read cqsp::asset::AssetLoader::LoadResources to ...
Definition: clientctx.h:21