System manager for storage and access to the current scene. More...

#include <SceneManager.h>

Detailed Description

System manager for storage and access to the current scene.

The SceneManager is a singleton that allows the user to get the current scene and set the current scene.

Static Public Member Functions

static SceneGetCurrentScene ()
 Function for acquiring a pointer to the current scene. More...
 
static void SceneChange (Scene *const input_scene)
 Function for changing the scene. More...
 
static void SetSceneCamera (IonCamera *input_cam)
 Function for setting the current Scene's Camera. More...
 
static Camera * GetCurSceneCam3D ()
 Function for acquiring a pointer to the current 2D Camera. More...
 
static Camera * GetCurSceneCam2D ()
 Function for acquiring a pointer to the current 3D Camera. More...
 
static TerrainGetCurrentTerrain ()
 Function for acquiring a pointer to the current scene's Terrain. More...
 

Member Function Documentation

static Scene* SceneManager::GetCurrentScene ( )
inlinestatic

Function for acquiring a pointer to the current scene.

Returns
Pointer to the current scene object
static Terrain* SceneManager::GetCurrentTerrain ( )
static

Function for acquiring a pointer to the current scene's Terrain.

Returns
Pointer to the current scene Terrain
static Camera* SceneManager::GetCurSceneCam2D ( )
static

Function for acquiring a pointer to the current 3D Camera.

Returns
Pointer to the current 3D camera object
static Camera* SceneManager::GetCurSceneCam3D ( )
static

Function for acquiring a pointer to the current 2D Camera.

Returns
Pointer to the current 2D camera object
static void SceneManager::SceneChange ( Scene *const  input_scene)
inlinestatic

Function for changing the scene.

This function will submit the passed in input_scene to become the current scene after the next update cycle. This will destroy the old scene and initialize the input_scene.

Parameters
input_sceneConstant pointer to scene object to be set as current scene.
static void SceneManager::SetSceneCamera ( IonCamera input_cam)
static

Function for setting the current Scene's Camera.

This function will set the Current Scene's Camera to the passed in IonCamera pointer.

Parameters
input_campointer to IonCamera object to be set as the current camera.