diff options
Diffstat (limited to 'camera.hpp')
-rw-r--r-- | camera.hpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/camera.hpp b/camera.hpp new file mode 100644 index 0000000..f88b4fe --- /dev/null +++ b/camera.hpp @@ -0,0 +1,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 |