HatchitGame
Static Public Member Functions | List of all members
Hatchit::Game::SceneManager Class Reference

Defines the singleton scene manager. More...

#include <ht_scenemanager_singleton.h>

Inheritance diagram for Hatchit::Game::SceneManager:

Static Public Member Functions

static void Deinitialize ()
 De-initializes the scene manager.
 
static bool Initialize ()
 Initializes the scene manager. More...
 
static bool LoadScene (const std::string &sceneName)
 Loads the given scene. More...
 
static void Update ()
 Updates the scene manager.
 

Detailed Description

Defines the singleton scene manager.

Member Function Documentation

bool Hatchit::Game::SceneManager::Initialize ( )
static

Initializes the scene manager.

Returns
true if the SceneManager could be initialized, false otherwise.
bool Hatchit::Game::SceneManager::LoadScene ( const std::string &  sceneName)
static

Loads the given scene.

Parameters
sceneNameThe name of the next Scene to load.
Returns
true if the Scene was successfully loaded, false otherwise.
See also
Scene(), Scene::LoadFromHandle()

Unloads the current scene and loads in the specified scene. If the scene does not exist in the list of scenes, an error is thrown.

Unloads the current scene and loads in the specified scene. If the scene does not exist in the list of scenes, an error is thrown.


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