CS4850 Final Project
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
SceneManager Struct Reference

Singleton class that manages scenes. More...

#include <SceneManager.hpp>

Public Member Functions

void SetCurrentScene (std::shared_ptr< Scene > scene)
 Set the current scene.
 
const std::shared_ptr< SceneGetCurrentScene ()
 Get the current scene.
 

Static Public Member Functions

static SceneManagerInstance ()
 Get the instance of the SceneManager.
 

Detailed Description

Singleton class that manages scenes.

Member Function Documentation

◆ GetCurrentScene()

const std::shared_ptr< Scene > SceneManager::GetCurrentScene ( )
inline

Get the current scene.

Returns
std::shared_ptr<Scene> The current scene

◆ Instance()

static SceneManager & SceneManager::Instance ( )
inlinestatic

Get the instance of the SceneManager.

Returns
SceneManager& SceneManager instance

◆ SetCurrentScene()

void SceneManager::SetCurrentScene ( std::shared_ptr< Scene > scene)
inline

Set the current scene.

Parameters
sceneThe scene to set as the current scene

The documentation for this struct was generated from the following file: