diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-19 14:29:48 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-03-20 08:18:03 +0100 |
| commit | f3c46930b43707e57979f08c85d53974f688380d (patch) | |
| tree | 0b0e363ffe91ba50b3381011fddad7aceacbc497 /editor/tests.cpp | |
| parent | 9629cfc4a97241a01654518dd7b8b2636e415866 (diff) | |
pass dt to tests
Diffstat (limited to 'editor/tests.cpp')
| -rw-r--r-- | editor/tests.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/editor/tests.cpp b/editor/tests.cpp index a5c2be3c..4da1553f 100644 --- a/editor/tests.cpp +++ b/editor/tests.cpp @@ -3,6 +3,7 @@ #include "app.hpp" #include "floormat/main.hpp" #include "floormat/events.hpp" +#include "src/nanosecond.inl" #include "imgui-raii.hpp" #define HAVE_LIBC 1 #include <SDL_keycode.h> @@ -45,16 +46,16 @@ safe_ptr<tests_data_> tests_data_::make() return safe_ptr<tests_data_>{new tests_data}; } -void app::tests_pre_update() +void app::tests_pre_update(Ns dt) { if (auto& x = tests().current_test) - x->update_pre(*this); + x->update_pre(*this, dt); } -void app::tests_post_update() +void app::tests_post_update(Ns dt) { if (auto& x = tests().current_test) - x->update_post(*this); + x->update_post(*this, dt); } bool app::tests_handle_mouse_click(const mouse_button_event& e, bool is_down) |
