2022-04-22 20:37:38 +00:00
|
|
|
#pragma once
|
|
|
|
#include <glm/glm.hpp>
|
2022-05-04 09:10:26 +00:00
|
|
|
#include <glm/gtc/matrix_transform.hpp>
|
|
|
|
|
|
|
|
class Camera {
|
|
|
|
public:
|
|
|
|
glm::vec3 Position;
|
|
|
|
glm::vec3 Rotation;
|
|
|
|
float Zoom;
|
|
|
|
|
|
|
|
Camera(glm::vec3 position, glm::vec3 rotation, float zoom );
|
|
|
|
~Camera();
|
|
|
|
|
|
|
|
glm::mat4 GetViewMatrix();
|
|
|
|
|
2022-04-22 20:37:38 +00:00
|
|
|
|
|
|
|
private:
|
2022-05-04 09:10:26 +00:00
|
|
|
glm::vec3 Front;
|
|
|
|
glm::vec3 Right;
|
|
|
|
glm::vec3 Up;
|
2022-04-22 20:37:38 +00:00
|
|
|
|
|
|
|
};
|