summaryrefslogtreecommitdiffhomepage
path: root/editor/app.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-24 11:33:09 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-24 11:33:09 +0200
commit45f285f3e31e3755bb77d48e0631b505860657c3 (patch)
tree30b03350c09106d5c7b06da20c9ed28f8c33070d /editor/app.hpp
parentc8547d38a29bb4756e3351bdfa45ea72635286d8 (diff)
a
Diffstat (limited to 'editor/app.hpp')
-rw-r--r--editor/app.hpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/editor/app.hpp b/editor/app.hpp
index e4f26cf0..b43d0e12 100644
--- a/editor/app.hpp
+++ b/editor/app.hpp
@@ -74,8 +74,12 @@ private:
void do_camera(float dt);
void reset_camera_offset();
void recalc_cursor_tile();
- void init_imgui(Vector2i size);
+ void draw_cursor_tile();
+ void draw_wireframe_quad(global_coords pt);
+ void draw_wireframe_box(global_coords pt);
+
+ void init_imgui(Vector2i size);
void draw_ui();
float draw_main_menu();
void draw_fps();
@@ -84,14 +88,9 @@ private:
void draw_editor_pane(tile_editor& type, float main_menu_height);
- void draw_cursor_tile();
-
- void draw_wireframe_quad(global_coords pt);
- void draw_wireframe_box(global_coords pt);
-
Containers::Pointer<floormat_main> M;
- std::shared_ptr<tile_atlas> _floor1, _floor2, _wall1, _wall2;
ImGuiIntegration::Context _imgui{NoCreate};
+ std::shared_ptr<tile_atlas> _floor1, _floor2, _wall1, _wall2;
wireframe_mesh<wireframe::quad> _wireframe_quad;
wireframe_mesh<wireframe::box> _wireframe_box;
editor _editor;