From cdd75000effac0216588766234cfa5b3e8e304d5 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Wed, 8 Nov 2017 12:26:43 +0100 Subject: Frametime-independent dynamics. --- src/render.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/render.cpp') diff --git a/src/render.cpp b/src/render.cpp index 259d898..d1b9752 100644 --- a/src/render.cpp +++ b/src/render.cpp @@ -65,9 +65,10 @@ state_t::state_t(sf::RenderWindow *window_) font.loadFromFile("assets/LiberationMono-Regular.ttf"); } -void state_t::begin_frame(double time_) +void state_t::begin_frame(double now_, double dt_) { - now = time_; + now = now_; + dt = dt_; window->clear(); } -- cgit