Turbo Engine 0.3
A C++ game engine using Allegro 5
turbo::SceneManager Class Reference

#include <SceneManager.hpp>

Public Member Functions

 SceneManager ()
void register_scene (Scene *scene, const char *name)
 Register a scene in the manager.
void set_active_scene (const char *name)
 Set the scene currently displayed.
Sceneget_active_scene () const
 Retrieves the currently displayed scene.
const std::string & get_active_scene_name () const
 Name under which the active scene was registered (empty if none).
 ONLYIMGUI (debug::SceneManagerDebug debug)

Detailed Description

Manage the scene instances

Constructor & Destructor Documentation

◆ SceneManager()

turbo::SceneManager::SceneManager ( )

Member Function Documentation

◆ get_active_scene()

Scene * turbo::SceneManager::get_active_scene ( ) const

Retrieves the currently displayed scene.

Returns
Current scene

◆ get_active_scene_name()

const std::string & turbo::SceneManager::get_active_scene_name ( ) const

Name under which the active scene was registered (empty if none).

◆ ONLYIMGUI()

turbo::SceneManager::ONLYIMGUI ( debug::SceneManagerDebug debug)

◆ register_scene()

void turbo::SceneManager::register_scene ( Scene * scene,
const char * name )

Register a scene in the manager.

Parameters
sceneThe target scene
nameThe name of the scene (used to identify the scene in the registry)

◆ set_active_scene()

void turbo::SceneManager::set_active_scene ( const char * name)

Set the scene currently displayed.

Parameters
nameName of the scene

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