CitroFlex3ds 0.1
CitroFlex3DS is a lightweight game engine designed specifically for Nintendo 3DS homebrew development. It provides a simple framework for creating games and applications.
 
Loading...
Searching...
No Matches
Scene::SceneManager Class Reference

Manages multiple scenes and handles rendering Controls scene lifecycle and screen rendering. More...

#include <Scene.hpp>

Public Member Functions

Input::InputManager & GetInputManager ()
 Get input manager.
 
 SceneManager ()
 Constructor - initializes C2D and C3D.
 
virtual ~SceneManager ()
 Destructor - cleans up C2D and C3D.
 
int AddScene (Scene *scene)
 Add new scene to manager.
 
void LoadScene (const std::string &sceneName, Screen targetScreen)
 Load scene by name.
 
void LoadScene (int index, Screen targetScreen)
 Load scene by index.
 
void Update ()
 Update and render current scenes.
 
void Run ()
 Main game loop.
 

Detailed Description

Manages multiple scenes and handles rendering Controls scene lifecycle and screen rendering.

Member Function Documentation

◆ AddScene()

int Scene::SceneManager::AddScene ( Scene * scene)

Add new scene to manager.

Parameters
scenePointer to scene to add
Returns
Index of the scene in the scenes vector

◆ GetInputManager()

Input::InputManager & Scene::SceneManager::GetInputManager ( )
inline

Get input manager.

Returns
Reference to input manager

◆ LoadScene() [1/2]

void Scene::SceneManager::LoadScene ( const std::string & sceneName,
Screen targetScreen )

Load scene by name.

Parameters
sceneNameName of scene to load
targetScreenScreen to load scene on

◆ LoadScene() [2/2]

void Scene::SceneManager::LoadScene ( int index,
Screen targetScreen )

Load scene by index.

Parameters
indexIndex of scene to load
targetScreenScreen to load scene on

The documentation for this class was generated from the following files: