14 class CameraController {
26 void CreateOrthoCamera(
const float left,
float right,
const float bottom,
const float top,
const uint8_t depth = 50);
45 void SetScale(
const glm::vec2 scale);
80 CameraController() =
default;
82 m_CurrentCameraComponent = camera;
~CameraController()=default
void SetPosition(const glm::vec2 newPos)
Sets the position of the camera.
void SetRotation(const float angle)
Sets the rotational angle of the camera.
void CreateOrthoCamera(const float left, float right, const float bottom, const float top, const uint8_t depth=50)
Creates or recreate an orthographic camera.
glm::vec2 GetPosition() const
Gets the current camera position.
float GetRotation() const
Gets the current camera rotation.
glm::vec2 GetSize() const
Gets the current camera size.
glm::vec2 GetScale() const
Gets the current camera scale.
void RecalculateVP()
Recalculates the view projection matrix.
void SetScale(const glm::vec2 scale)
Changes camera scale to the requested value.
Almost everything connected to graphics is in this namespace.
Anything connected to WorldSystem (ECS) is in this namespace.
A Scene context component with all the graphical camera data.