3#include "glm/glm/glm.hpp"
4#include "glm/gtc/matrix_transform.hpp"
11enum class CameraMovement
27 int m_ViewportWidth = 1920;
28 int m_ViewportHeight = 1080;
31 virtual glm::mat4 GetViewMatrix() = 0;
32 virtual glm::mat4 GetProjectionMatrix() = 0;
34 virtual void SetPerspective(
const glm::mat4& perspective) = 0;
35 virtual void SetViewMatrix(
const glm::mat4& view) = 0;
37 virtual void SetViewportSize(
int width,
int height) = 0;
38 int GetViewportWidth() {
return m_ViewportWidth; }
39 int GetViewportHeight() {
return m_ViewportHeight; }
A class that represents the camera.