Responsible for Scene functions. More...
#include <Scene.h>
Protected Member Functions | |
template<typename C1, typename C2> | |
void | SetCollisionPair () |
Creates a test pair for a GameObject to collide with different typed GameObjects. | |
template<typename C1> | |
void | SetCollisionSelf () |
Creates a test pair for a GameObject to collide with same typed GameObjects. | |
Private Member Functions | |
Camera * | GetCurrCam () |
Gets Current Camera. For more information go to CameraManager. | |
Camera * | GetCam2D () |
Gets Current 2D Camera. For more information go to CameraManager. | |
void | SetCurrCam (Camera *newCam) |
Changes Current Camera. For more information go to CameraManager. | |
float | GetCamNearClipPersp () |
Gets Near Clip Plane. For more information go to CameraManager. | |
float | GetCamFarClipPersp () |
Gets Far Clip Plane. For more information go to CameraManager. | |
float | GetFOV () |
Gets FOV. For more information go to CameraManager. | |
void | SetCamNearClipPersp (float c) |
Sets Near Clip Plane. For more information go to CameraManager. | |
void | SetCamFarClipPersp (float c) |
Sets Far Clip Plane. For more information go to CameraManager. | |
void | SetFOV (float f) |
Sets FOV. For more information go to CameraManager. | |
void | MoveCam (Vect up, Vect lookAt, Vect pos) |
Moves Current Camera. For more information go to CameraManager. | |
void | UpdateCam () |
Updates Current Camera. For more information go to CameraManager. | |
virtual void | Initialize () |
Function automatically called on scene starting. | |
virtual void | SceneEnd () |
Function automatically called on scene ending. | |
Responsible for Scene functions.
Game objects are held by scenes. Scenes manage the back end of update, draw, draw2d, object registration, and setting up collision testing.
|
private |
Gets Current 2D Camera. For more information go to CameraManager.
|
private |
Gets Far Clip Plane. For more information go to CameraManager.
|
private |
Gets Near Clip Plane. For more information go to CameraManager.
|
private |
Gets Current Camera. For more information go to CameraManager.
|
private |
Gets FOV. For more information go to CameraManager.
|
privatevirtual |
Function automatically called on scene starting.
This function gets called whenever a scene is started or swapped to. This is a good location to create Game Objects as well as Collision Pairs and Collision Selfs.
|
private |
Moves Current Camera. For more information go to CameraManager.
|
privatevirtual |
Function automatically called on scene ending.
This function gets called whenever a scene is swapped from or ended. This is a good location to delete Game Objects.
|
private |
Sets Far Clip Plane. For more information go to CameraManager.
|
private |
Sets Near Clip Plane. For more information go to CameraManager.
|
protected |
Creates a test pair for a GameObject to collide with different typed GameObjects.
Sets up a collision testing pair between different typed GameObjects using templates. Go to Collidable for more information.
C1 | |
C2 |
|
protected |
Creates a test pair for a GameObject to collide with same typed GameObjects.
Sets up a collision testing pair between same typed GameObjects using templates. Go to Collidable for more information.
C1 | |
C2 |
|
private |
Changes Current Camera. For more information go to CameraManager.
|
private |
Sets FOV. For more information go to CameraManager.
|
private |
Updates Current Camera. For more information go to CameraManager.