From f3c46930b43707e57979f08c85d53974f688380d Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 19 Mar 2024 14:29:48 +0100 Subject: pass dt to tests --- editor/tests.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'editor/tests.cpp') 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 @@ -45,16 +46,16 @@ safe_ptr tests_data_::make() return safe_ptr{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) -- cgit v1.2.3