aboutsummaryrefslogtreecommitdiff
path: root/source/Camera.hpp
blob: d203622bd1e87a1258abe47ab6d686242f6c203a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <glm/glm.hpp>

class Camera {
public:
	glm::vec3 pos;
	glm::vec3 lookAt;
	bool perspective = false;

public:
	void Move(glm::vec3 pos);
	void LookAt(glm::vec3 pos);

	bool HasPerspective() const { return perspective; }
	void SetHasPerspective(bool perspective);

	glm::mat4 CalcViewMatrix() const;
	glm::mat4 CalcProjectionMatrix() const;
};