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. | |
| template<typename C1> | |
| void | SetCollisionTerrain (int threshold) |
| Creates a test pair for a GameObject to collide with the Terrain. | |
| void | SetTerrain (std::string TerrainName) |
| Sets the Terrain for a given Scene. | |
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. | |
| Vect | GetListenerPos () |
| Gets Listener Position. For more information go to Listener. | |
| void | SetListenerPos (Vect p) |
| Sets Listener Position. For more information go to Listener. | |
| Vect | GetListenerLookAt () |
| Gets Listener Look At Vect. For more information go to Listener. | |
| Vect | GetListenerUp () |
| Gets Listener Up Vect. For more information go to Listeners. | |
| void | SetListenerOrientation (Vect lookAt, Vect up) |
| Gets Listener Position. For more information go to Listener. | |
| void | MuteAllSounds () |
| Mutes all current and future sounds. | |
| void | UnmuteAllSounds () |
| Unmutes all current and future sounds. | |
| SoundSourceWorld * | CreateSourceWorld () |
| Used to create a SoundSourceWorld. | |
| SoundSourceListener * | CreateSourceListener () |
| Used to create a SoundSourceListener. | |
| void | ReturnSoundSource (SoundSourceWorld *w) |
| Used to return a sound to a scene. | |
| void | ReturnSoundSource (SoundSourceListener *l) |
| Used to return a sound to a scene. | |
| bool | IsInsideReverbSpace () |
| Returns true if inside a ReverbSpace. | |
| ReverbSpace * | CreateReverbSpace (const ALuint &reverb) |
| Used to create a ReverbSpace with a reverb from ReverbManager. | |
| ReverbSpace * | CreateReverbSpace (const float &wMat, const float &fMat, const float &cMat) |
| Used to create a ReverbSpace with a dynamic reverb. | |
| void | ReturnReverbSpace (ReverbSpace *s) |
| Used to return a ReverbSpace to a scene. | |
| void | SetTerrainMaterial (float m) |
| Sets the Terrain Material for occlusion. Defaults to no occlusion. | |
| void | GetTerrainHeightAndNormal (const Vect &pos, float &h, Vect &n) |
| Used to determine the height and normal of a specific point on the terrain. | |
| 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 |
Used to create a ReverbSpace with a reverb from ReverbManager.
| reverb |
|
private |
Used to create a ReverbSpace with a dynamic reverb.
| wMat | |
| fMat | |
| cMat |
|
private |
Used to create a SoundSourceListener.
|
private |
Used to create a SoundSourceWorld.
|
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.
|
private |
|
private |
Gets Listener Up Vect. For more information go to Listeners.
|
private |
Used to determine the height and normal of a specific point on the terrain.
Returns 0 and Vect(0, 1, 0) if no terrain is set.
| pos | |
| h | |
| n |
|
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 |
Returns true if inside a ReverbSpace.
|
private |
Moves Current Camera. For more information go to CameraManager.
|
private |
Mutes all current and future sounds.
|
private |
Used to return a ReverbSpace to a scene.
| s |
|
private |
Used to return a sound to a scene.
| w |
|
private |
Used to return a sound to a scene.
| w |
|
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 |
|
protected |
Creates a test pair for a GameObject to collide with the Terrain.
Sets up a collision testing pair between a GameObjects and the Terrain using templates. Go to Collidable for more information. Will returna a hit if the amount of terrain cells equals or exceeds the given threshold.
| C1 |
| threshold |
|
private |
Changes Current Camera. For more information go to CameraManager.
|
private |
Sets FOV. For more information go to CameraManager.
|
private |
|
private |
|
protected |
Sets the Terrain for a given Scene.
| TerrainName |
|
private |
Sets the Terrain Material for occlusion. Defaults to no occlusion.
|
private |
Unmutes all current and future sounds.
|
private |
Updates Current Camera. For more information go to CameraManager.