|
SolarSim
|
Manages scene lifecycle and transitions. More...
#include <scene_manager.hpp>
Public Member Functions | |
| SceneManager (const SceneManager &)=delete | |
| SceneManager & | operator= (const SceneManager &)=delete |
| Scene * | active () |
| Get the currently active scene. | |
| void | loadScene (std::unique_ptr< Scene > newScene) |
| Load a new scene, replacing the current one. | |
| void | unloadScene () |
| Unload the current active scene. | |
Static Public Member Functions | |
| static SceneManager & | get () |
| Get the singleton SceneManager instance. | |
Private Member Functions | |
| SceneManager () | |
| ~SceneManager () | |
Private Attributes | |
| std::unique_ptr< Scene > | m_activeScene |
Manages scene lifecycle and transitions.
|
delete |
|
inlineprivate |
|
inlineprivate |
|
nodiscard |
Get the currently active scene.
|
staticnodiscard |
Get the singleton SceneManager instance.
| void solarsim::SceneManager::loadScene | ( | std::unique_ptr< Scene > | newScene | ) |
Load a new scene, replacing the current one.
| newScene | Unique pointer to the scene to load |
|
delete |
| void solarsim::SceneManager::unloadScene | ( | ) |
Unload the current active scene.
|
private |
Currently active scene