summaryrefslogtreecommitdiff
path: root/camera.hpp
blob: f88b4fea60947392f76a6eb580e47f788737c738 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef camera_hpp
#define camera_hpp

#include "maths.hpp"

struct Camera {
	float fov, near, far, asp;
	v3f forward, position;
	m4f view, proj;
	void init(float vfov, const v3f& f, const v3f& p);
	void update();
	const m4f& get_view() const;
	const m4f& get_proj() const;
};

#endif