Manages scenes for the application.
More...
#include <scenemanager.h>
Manages scenes for the application.
◆ DeleteCurrentScene()
void cqsp::engine::SceneManager::DeleteCurrentScene |
( |
| ) |
|
◆ GetScene()
Scene * cqsp::engine::SceneManager::GetScene |
( |
| ) |
|
Gets current running scene.
- Returns
◆ Render()
void cqsp::engine::SceneManager::Render |
( |
float |
deltaTime | ) |
|
◆ SetInitialScene()
void cqsp::engine::SceneManager::SetInitialScene |
( |
std::unique_ptr< Scene > |
scene | ) |
|
Sets the current scene.
- Parameters
-
◆ SetScene()
void cqsp::engine::SceneManager::SetScene |
( |
std::unique_ptr< Scene > |
scene | ) |
|
Sets the next scene, and the scene will be switched when
is executed.
◆ SwitchScene()
void cqsp::engine::SceneManager::SwitchScene |
( |
| ) |
|
Sets the next scene to the current.
◆ ToSwitchScene()
bool cqsp::engine::SceneManager::ToSwitchScene |
( |
| ) |
|
|
inline |
Verifies if it is appropiate to switch scenes.
- Returns
◆ Ui()
void cqsp::engine::SceneManager::Ui |
( |
float |
deltaTime | ) |
|
◆ Update()
void cqsp::engine::SceneManager::Update |
( |
float |
deltaTime | ) |
|
◆ m_next_scene
std::unique_ptr<Scene> cqsp::engine::SceneManager::m_next_scene |
|
private |
◆ m_scene
std::unique_ptr<Scene> cqsp::engine::SceneManager::m_scene |
|
private |
◆ m_switch
bool cqsp::engine::SceneManager::m_switch |
|
private |
If the next scene has been set.
The documentation for this class was generated from the following files: