summaryrefslogtreecommitdiff
path: root/camera.hpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-14 00:04:55 +1100
committerquou <quou@disroot.org>2025-01-14 00:04:55 +1100
commitfd488f9603f22db0312eadcdb93b7880922dc9a7 (patch)
tree15b7986e2c06eea57575f4c97811cbc65eaa120a /camera.hpp
parentdfa0b6de5a070d1be63d04574c3b8ce469518250 (diff)
misc refactoring
Diffstat (limited to 'camera.hpp')
-rw-r--r--camera.hpp16
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