summaryrefslogtreecommitdiff
path: root/editor.hpp
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-01-18 16:19:41 +1100
committerquou <quou@disroot.org>2025-01-18 16:19:41 +1100
commitcf2abfcfe34a9b3e4cf5af193d1f320374416267 (patch)
treec0f209ac730fa8a8b4564c818b3ce44fec59ffeb /editor.hpp
parent025510f2928e123d12a7d6d3574ca70fdd9d7717 (diff)
convert models and editor to use ecs
Diffstat (limited to 'editor.hpp')
-rw-r--r--editor.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/editor.hpp b/editor.hpp
index bb6a6a3..9443a45 100644
--- a/editor.hpp
+++ b/editor.hpp
@@ -1,13 +1,15 @@
#ifndef editor_hpp
#define editor_hpp
+#include "world.hpp"
+
struct UI;
struct Model_Instance;
struct Line_Renderer;
void init_editor(UI* ui);
void deinit_editor();
-void editor_on_select(Model_Instance* instance, int mesh);
+void editor_on_select(World& w, Entity_Id e, int m);
void editor_draw(Line_Renderer& lr);
#endif