diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-01 07:14:51 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-01 11:08:43 +0100 |
commit | fa8fb9598ed255057badc888da7e22227c45de1c (patch) | |
tree | b102acae5bc15c08ffe913409b6328f4b661ec0d /floormat/main.hpp | |
parent | 486e591169af724107ffaf6f24cd1e81b24529a9 (diff) |
wip1
Diffstat (limited to 'floormat/main.hpp')
-rw-r--r-- | floormat/main.hpp | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/floormat/main.hpp b/floormat/main.hpp index a6f67ab0..f28ffebc 100644 --- a/floormat/main.hpp +++ b/floormat/main.hpp @@ -27,8 +27,12 @@ class astar; struct floormat_main { - struct draw_bounds final { int16_t minx, maxx, miny, maxy; }; - struct meshes final { + struct draw_bounds final + { + int16_t minx, maxx, miny, maxy; + }; + struct meshes final + { ground_mesh& ground; wall_mesh& wall; anim_mesh& anim; @@ -51,7 +55,7 @@ struct floormat_main virtual struct lightmap_shader& lightmap_shader() noexcept = 0; virtual const tile_shader& shader() const noexcept = 0; virtual void bind() noexcept = 0; - constexpr float smoothed_dt() const noexcept { return _frame_time; } + float smoothed_frame_time() const noexcept; virtual fm_settings& settings() noexcept = 0; virtual const fm_settings& settings() const noexcept = 0; @@ -88,8 +92,8 @@ struct floormat_main [[maybe_unused]] static void debug_break(); protected: - float _frame_time = 0; - Vector2 _dpi_scale{1, 1}, _virtual_scale{1, 1}; + float _smoothed_frame_time = 0; + Vector2 _dpi_scale{ 1, 1 }, _virtual_scale{ 1, 1 }; Vector2i _framebuffer_size; bool _do_render_vobjs : 1 = true; }; |