diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 07:09:23 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 07:09:23 +0200 |
commit | 5b97a6de06e7c44e7960159dc98c54860170203b (patch) | |
tree | d251705c2db0f7c9f53127e7dcc3e8c7d3737afa /main/app.hpp | |
parent | 1f1951218e715e12eaf5d8cd338b6e5459872acb (diff) |
a
Diffstat (limited to 'main/app.hpp')
-rw-r--r-- | main/app.hpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/main/app.hpp b/main/app.hpp index c691f85d..35fb9481 100644 --- a/main/app.hpp +++ b/main/app.hpp @@ -7,6 +7,7 @@ #include "draw/wall-mesh.hpp" #include "draw/wireframe-mesh.hpp" #include "draw/wireframe-quad.hpp" +#include "draw/wireframe-box.hpp" #include "compat/enum-bitset.hpp" #include <Magnum/Timeline.h> #include <Magnum/Platform/Sdl2Application.h> @@ -30,7 +31,8 @@ struct app final : Platform::Application void keyReleaseEvent(KeyEvent& event) override; void do_key(KeyEvent::Key k, KeyEvent::Modifiers m, bool pressed, bool repeated); void draw_chunk(chunk& c); - void draw_wireframe(); + void draw_wireframe_quad(); + void draw_wireframe_box(); void update_window_scale(Vector2i window_size); void viewportEvent(ViewportEvent& event) override; void debug_callback(GL::DebugOutput::Source src, GL::DebugOutput::Type type, UnsignedInt id, @@ -55,6 +57,7 @@ struct app final : Platform::Application floor_mesh _floor_mesh; wall_mesh _wall_mesh; wireframe_mesh<wireframe::quad> _wireframe_quad; + wireframe_mesh<wireframe::box> _wireframe_box; Vector2 camera_offset; enum_bitset<key> keys; |