From fd488f9603f22db0312eadcdb93b7880922dc9a7 Mon Sep 17 00:00:00 2001 From: quou Date: Tue, 14 Jan 2025 00:04:55 +1100 Subject: misc refactoring --- camera.hpp | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 camera.hpp (limited to 'camera.hpp') 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 -- cgit v1.2.3-54-g00ecf