summaryrefslogtreecommitdiffhomepage
path: root/main/app.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-17 13:56:52 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-17 13:56:52 +0200
commitf3cb626f7bcb2d181f58826e435941eb47613260 (patch)
tree55eb2a45e962634f11caf22c3c7b0740997c3fb6 /main/app.hpp
parent7f01dc47b0fd322d8c2b3f27eb1a94cd450a26a5 (diff)
a
Diffstat (limited to 'main/app.hpp')
-rw-r--r--main/app.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/main/app.hpp b/main/app.hpp
index 1237f205..82d5dd73 100644
--- a/main/app.hpp
+++ b/main/app.hpp
@@ -50,6 +50,7 @@ struct app final : Platform::Application
void event_mouse_leave();
void drawEvent() override;
+ std::array<std::int16_t, 4> get_draw_bounds() const noexcept;
void draw_world();
void draw_wireframe_quad(global_coords pt);
void draw_wireframe_box(local_coords pt);
@@ -98,6 +99,8 @@ struct app final : Platform::Application
enum_bitset<key> keys;
Magnum::Timeline timeline;
editor _editor;
+
+ static constexpr std::int32_t BASE_X = 0, BASE_Y = 0;
};
constexpr Vector2 app::project(const Vector3 pt)