Manages the current and default cameras for both 3D and 2D views. More...
#include <CameraManager.h>
Public Member Functions | |
CameraManager (const CameraManager &)=delete | |
CameraManager & | operator= (const CameraManager &)=delete |
Camera * | GetCurrentCamera () const |
Retrieves the current 3D camera. | |
void | SetCurrentCamera (Camera *cam) |
Sets the current 3D camera. | |
Camera * | GetCurrentCamera2D () const |
Retrieves the current 2D camera. | |
void | SetCurrentCamera2D (Camera *cam) |
Sets the current 2D camera. | |
Private Attributes | |
Camera * | CurrentCamera |
Camera * | DefaultCamera |
Camera * | CurrentCamera2D |
Camera * | DefaultCamera2D |
Manages the current and default cameras for both 3D and 2D views.
The CameraManager class is responsible for managing the current and default cameras used in the application. It provides methods to get and set the current cameras for both 3D and 2D views.
Camera * CameraManager::GetCurrentCamera | ( | ) | const |
Retrieves the current 3D camera.
Camera * CameraManager::GetCurrentCamera2D | ( | ) | const |
Retrieves the current 2D camera.
void CameraManager::SetCurrentCamera | ( | Camera * | cam | ) |
Sets the current 3D camera.
cam | A pointer to the Camera object to set as the current 3D camera. |
void CameraManager::SetCurrentCamera2D | ( | Camera * | cam | ) |
Sets the current 2D camera.
cam | A pointer to the Camera object to set as the current 2D camera. |