Sly Engine
CameraManager Class Reference

#include <CameraManager.h>

Collaboration diagram for CameraManager:
Collaboration graph

Public Member Functions

 CameraManager ()
 Default constructor. More...
 
 CameraManager (const CameraManager &)=delete
 Copy constructor. More...
 
 CameraManager (CameraManager &&)=delete
 Move constructor. More...
 
CameraManageroperator= (const CameraManager &)=delete
 Assignment operator. More...
 
CameraManageroperator= (CameraManager &&)=delete
 Move assignment operator. More...
 
 ~CameraManager ()
 Deconstructor. More...
 
void Delete ()
 Deletes the defualt camera. More...
 
Camera * GetCurrentCamera ()
 Gets current camera. More...
 
Camera * GetCurrent2DCamera ()
 Gets current 2D camera. More...
 
void SetCurrentCamera (Camera *newCamera)
 Sets current camera. More...
 
void SetCurrent2DCamera (Camera *newCamera)
 Sets current 2D camera. More...
 
void ProcessGodCamera ()
 Process the god camera.
More...
 
void SetGodCamera ()
 Sets god camera. More...
 

Private Attributes

Camera * pCurrentCam
 The current camera used by the scene. More...
 
Camera * pDefaultCam
 The default camera setup and owned by the CameraManager. More...
 
Camera * pCurrent2DCam
 the current 2D camera used by the scene. More...
 
Camera * pDefault2DCam
 The default camera setup and owned by the CameraManager. More...
 
Camera * pGodCam
 
Vect CamPos
 
Matrix CamRot
 
Vect CamUp
 
Vect CamDir
 
const float CamTranSpeed = 5.0f
 
const float CamRotSpeed = 0.02f
 

Constructor & Destructor Documentation

◆ CameraManager() [1/3]

CameraManager::CameraManager ( )

Default constructor.

Here is the call graph for this function:

◆ CameraManager() [2/3]

CameraManager::CameraManager ( const CameraManager )
delete

Copy constructor.

◆ CameraManager() [3/3]

CameraManager::CameraManager ( CameraManager &&  )
delete

Move constructor.

◆ ~CameraManager()

CameraManager::~CameraManager ( )

Deconstructor.

Member Function Documentation

◆ Delete()

void CameraManager::Delete ( )

Deletes the defualt camera.

◆ GetCurrent2DCamera()

Camera * CameraManager::GetCurrent2DCamera ( )

Gets current 2D camera.

Returns
Null if it fails, else the current 2D camera.
Here is the caller graph for this function:

◆ GetCurrentCamera()

Camera * CameraManager::GetCurrentCamera ( )

Gets current camera.

Returns
Null if it fails, else the current camera.
Here is the caller graph for this function:

◆ operator=() [1/2]

CameraManager& CameraManager::operator= ( CameraManager &&  )
delete

Move assignment operator.

◆ operator=() [2/2]

CameraManager& CameraManager::operator= ( const CameraManager )
delete

Assignment operator.

◆ ProcessGodCamera()

void CameraManager::ProcessGodCamera ( )

Process the god camera.

Here is the caller graph for this function:

◆ SetCurrent2DCamera()

void CameraManager::SetCurrent2DCamera ( Camera *  newCamera)

Sets current 2D camera.

Parameters
[in,out]newCameraIf non-null, the current 2D cam becomes the newCamera.

Changes the current 2D camera to be a user provided camera. Ensure the input is an Orthographic camera.

Here is the caller graph for this function:

◆ SetCurrentCamera()

void CameraManager::SetCurrentCamera ( Camera *  newCamera)

Sets current camera.

Parameters
[in,out]newCameraIf non-null, sets the pCurrentCam to be the newCamera.
Here is the caller graph for this function:

◆ SetGodCamera()

void CameraManager::SetGodCamera ( )

Sets god camera.

Here is the caller graph for this function:

Member Data Documentation

◆ CamDir

Vect CameraManager::CamDir
private

◆ CamPos

Vect CameraManager::CamPos
private

◆ CamRot

Matrix CameraManager::CamRot
private

◆ CamRotSpeed

const float CameraManager::CamRotSpeed = 0.02f
private

◆ CamTranSpeed

const float CameraManager::CamTranSpeed = 5.0f
private

◆ CamUp

Vect CameraManager::CamUp
private

◆ pCurrent2DCam

Camera* CameraManager::pCurrent2DCam
private

the current 2D camera used by the scene.

◆ pCurrentCam

Camera* CameraManager::pCurrentCam
private

The current camera used by the scene.

◆ pDefault2DCam

Camera* CameraManager::pDefault2DCam
private

The default camera setup and owned by the CameraManager.

◆ pDefaultCam

Camera* CameraManager::pDefaultCam
private

The default camera setup and owned by the CameraManager.

◆ pGodCam

Camera* CameraManager::pGodCam
private

The documentation for this class was generated from the following files: