System manager for storage and access to the current scene.
More...
#include <SceneManager.h>
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 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_scene | Constant 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_cam | pointer to IonCamera object to be set as the current camera. |