summaryrefslogtreecommitdiff
path: root/model.hpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2024-12-29 23:33:39 +1100
committerquou <quou@disroot.org>2024-12-29 23:33:39 +1100
commit131f0b370f52f70f3dc4a6341d543ef2329cc00e (patch)
treee1cbeb0ccd976d371d2d6dcdee2928ce9539014f /model.hpp
parente25b20717523e579bb6f1e0d17b635c71bad6fab (diff)
add a seperate update_cbuffers function to models to avoid doing it on every render
Diffstat (limited to 'model.hpp')
-rw-r--r--model.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/model.hpp b/model.hpp
index 7130024..03cdef4 100644
--- a/model.hpp
+++ b/model.hpp
@@ -27,13 +27,16 @@ struct Model : public Asset {
void destroy(Device* dev);
void update_transforms();
- void render(
+ void update_cbuffers(
Device* dev,
- Arena* a,
- Render_Pass& pass,
const m4f& transform,
const m4f& view_projection
);
+ void render(
+ Device* dev,
+ Arena* a,
+ Render_Pass& pass
+ );
};
struct Model_Loader : public Asset_Loader {