diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-29 21:29:56 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-01 06:06:53 +0100 |
| commit | 486e591169af724107ffaf6f24cd1e81b24529a9 (patch) | |
| tree | 012ec6c07c474d4695eb5c22b47dd35cfce2767c /floormat | |
| parent | 5afe42d6a81eeb81db08d4bd2107ac4c71f6671e (diff) | |
time wip
It works now, but some functionality is lost in main/draw.cpp
Diffstat (limited to 'floormat')
| -rw-r--r-- | floormat/app.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/floormat/app.hpp b/floormat/app.hpp index c07c48e1..01f94b7f 100644 --- a/floormat/app.hpp +++ b/floormat/app.hpp @@ -1,9 +1,11 @@ #pragma once -namespace Magnum::Math { template<typename T> class Vector2; } +namespace Magnum::Math { template<typename T> class Vector2; template<class T> class Nanoseconds; } namespace floormat { +using Ns = Math::Nanoseconds<int64_t>; + struct mouse_move_event; struct mouse_button_event; struct mouse_scroll_event; @@ -28,7 +30,7 @@ struct floormat_app [[deprecated]] floormat_app(floormat_app&&) = default; [[deprecated]] floormat_app& operator=(floormat_app&&) = default; - virtual void update(float dt) = 0; + virtual void update(Ns t) = 0; virtual void maybe_initialize_chunk(const chunk_coords_& pos, chunk& c) = 0; virtual void draw() = 0; virtual z_bounds get_z_bounds() = 0; |
