summaryrefslogtreecommitdiff
path: root/model.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 /model.hpp
parentdfa0b6de5a070d1be63d04574c3b8ce469518250 (diff)
misc refactoring
Diffstat (limited to 'model.hpp')
-rw-r--r--model.hpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/model.hpp b/model.hpp
index b2bb531..7bd14cc 100644
--- a/model.hpp
+++ b/model.hpp
@@ -7,6 +7,8 @@
#include <tuple>
+struct Camera;
+
struct Material : public Asset {
float metalness, roughness, ao;
v3f albedo;
@@ -82,14 +84,6 @@ struct Material_Loader : public Asset_Loader {
void unload(Asset* a) override;
};
-struct Camera {
- float fov, near, far, asp;
- v3f forward, position;
- void init(float vfov, const v3f& f, const v3f& p);
- m4f get_view() const;
- m4f get_proj() const;
-};
-
struct Model_Instance {
Buffer_Id mvp;
Buffer_Id mat;