21 lines
391 B
C++
21 lines
391 B
C++
#pragma once
|
|
|
|
#include "glm/glm.hpp"
|
|
#include "glm/gtc/matrix_transform.hpp"
|
|
|
|
class Camera {
|
|
protected:
|
|
glm::vec3 position;
|
|
glm::mat4 projection;
|
|
glm::mat4 view;
|
|
glm::mat4 viewProj;
|
|
|
|
public:
|
|
Camera(float fov, float width, float height);
|
|
virtual ~Camera() = default;
|
|
|
|
glm::mat4 getViewProj();
|
|
|
|
virtual void update();
|
|
virtual void translate(glm::vec3 v);
|
|
}; |