5#include "editor/camera/Camera.h"
6#include "common/maths/Vec.h"
18 glm::mat4 m_ProjectionMatrix;
19 glm::mat4 m_ViewMatrix;
22 glm::vec3 GetPosition() {
return m_Position.ToGLM(); }
23 glm::mat4 GetViewMatrix() {
return m_ViewMatrix; };
24 glm::mat4 GetProjectionMatrix() {
return m_ProjectionMatrix; };
27 void SetPerspective(
const glm::mat4& perspective) { m_ProjectionMatrix = perspective; };
28 void SetViewMatrix(
const glm::mat4& view) { m_ViewMatrix = view; };
30 virtual void SetViewportSize(
int width,
int height) = 0;
32 virtual void MoveForward() = 0;
33 virtual void MoveBackward() = 0;
34 virtual void MoveLeft() = 0;
35 virtual void MoveRight() = 0;
36 virtual void ProcessMouseScroll(
float scrollOffset) = 0;
37 virtual void ProcessMouseMovement(
float xOffset,
float yOffset,
bool constrainPitch =
true) = 0;
A class that represents the camera.
A class for the MovableCamera's.