Responsible for the current Camera and Camera2D. For functions go to Scene. More...
#include <CameraManager.h>
Private Member Functions | |
Camera * | GetCurrCam () |
Retrieval of current camera. | |
Camera * | GetCam2D () |
Retrieval of current 2D camera. | |
void | SetCurrCam (Camera *newCam) |
Swaps main Camera. | |
void | MoveCam (Vect up, Vect lookAt, Vect pos) |
Moves main camera and changes orientation. | |
void | UpdateCam () |
Responsible for updating the main camera. | |
Responsible for the current Camera and Camera2D. For functions go to Scene.
This class is responsible for the creation of a default Camera and Camera2D as well as holding functions for updating, moving, getting and changing the camera. To access these functions go to Scene.
|
private |
Retrieval of current 2D camera.
This function retrieves the 2D camera, for uses such as rendering sprites.
|
private |
Retrieval of current camera.
This function retrieves the current active camera, for uses such as rendering models.
|
private |
Moves main camera and changes orientation.
This function is set up to allow users to change where the camera is located as well as what the camera is facing. This does not automatically call UpdateCam().
up | |
lookAt | |
pos |
|
private |
Swaps main Camera.
Allows for the current active camera to be swapped with a user generated camera. Users are now responsible for deletion of the new camera.
Example:
newCam |
|
private |
Responsible for updating the main camera.
Allows changes made by MoveCam() to take effect within the scene.