summaryrefslogtreecommitdiffhomepage
path: root/main/main-impl.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-25 20:51:18 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-25 20:51:18 +0200
commit22998e309dcf6c95c36730f86030bece0fca9667 (patch)
treec35f1747655a3112f09ff23372811c8ac0259902 /main/main-impl.hpp
parent343ce367077777dab463816a0d1c5bb9bee9c837 (diff)
a
Diffstat (limited to 'main/main-impl.hpp')
-rw-r--r--main/main-impl.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/main/main-impl.hpp b/main/main-impl.hpp
index 964bf1f3..202654db 100644
--- a/main/main-impl.hpp
+++ b/main/main-impl.hpp
@@ -51,6 +51,7 @@ struct main_impl final : Platform::Sdl2Application, floormat_main
[[maybe_unused]] void anyEvent(SDL_Event& event) override;
void drawEvent() override;
+ void update_from_window_flags();
bool is_text_input_active() const noexcept override;
void start_text_input() noexcept override;
@@ -60,13 +61,18 @@ struct main_impl final : Platform::Sdl2Application, floormat_main
private:
fm_settings s;
- char _dummy = maybe_register_debug_callback(s.gpu_debug);
- floormat_app& app;
+ [[maybe_unused]] char _dummy = maybe_register_debug_callback(s.gpu_debug);
+ floormat_app& app; // NOLINT(cppcoreguidelines-avoid-const-or-ref-data-members)
tile_shader _shader;
struct world _world{};
floor_mesh _floor_mesh;
wall_mesh _wall_mesh;
Magnum::Timeline timeline;
+ struct {
+ float value = 1e-1f;
+ float jitter = 0;
+ bool do_sleep = true;
+ } dt_expected;
struct draw_bounds final { std::int16_t minx, maxx, miny, maxy; };