SUNENGINE 0.0.2
A simple and bright C++ game engine.
 
Loading...
Searching...
No Matches
CameraManager Class Reference

Manages the current and default cameras for both 3D and 2D views. More...

#include <CameraManager.h>

Public Member Functions

 CameraManager (const CameraManager &)=delete
 
CameraManageroperator= (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
 

Detailed Description

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.

Member Function Documentation

◆ GetCurrentCamera()

Camera * CameraManager::GetCurrentCamera ( ) const

Retrieves the current 3D camera.

Returns
A pointer to the current 3D Camera object.

◆ GetCurrentCamera2D()

Camera * CameraManager::GetCurrentCamera2D ( ) const

Retrieves the current 2D camera.

Returns
A pointer to the current 2D Camera object.

◆ SetCurrentCamera()

void CameraManager::SetCurrentCamera ( Camera * cam)

Sets the current 3D camera.

Parameters
camA pointer to the Camera object to set as the current 3D camera.

◆ SetCurrentCamera2D()

void CameraManager::SetCurrentCamera2D ( Camera * cam)

Sets the current 2D camera.

Parameters
camA pointer to the Camera object to set as the current 2D camera.

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