summaryrefslogtreecommitdiffhomepage
path: root/main/floormat-main.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'main/floormat-main.hpp')
-rw-r--r--main/floormat-main.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/main/floormat-main.hpp b/main/floormat-main.hpp
index 5f0635cc..7b984781 100644
--- a/main/floormat-main.hpp
+++ b/main/floormat-main.hpp
@@ -1,6 +1,7 @@
#pragma once
#include "floormat.hpp"
+#include "src/global-coords.hpp"
#include <Magnum/Math/Vector2.h>
struct SDL_Window;
@@ -22,9 +23,11 @@ struct floormat_main
virtual void quit(int status) = 0;
virtual Magnum::Math::Vector2<int> window_size() const noexcept = 0;
- virtual float smoothed_dt() const noexcept = 0;
virtual tile_shader& shader() noexcept = 0;
virtual void register_debug_callback() noexcept = 0;
+ constexpr float smoothed_dt() const noexcept { return _smoothed_dt; }
+
+ virtual global_coords pixel_to_tile(Vector2d position) const noexcept = 0;
virtual world& world() noexcept = 0;
virtual SDL_Window* window() noexcept = 0;