summaryrefslogtreecommitdiffhomepage
path: root/floormat
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-22 21:03:49 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-22 21:03:49 +0100
commit2141477c69d379b02ca52e0df9171834b37aadd7 (patch)
tree347f865c403fd86e24ae6f1d2d327554d23f1c33 /floormat
parent4f458fba80cbcbfecf3fa54284e3004852bbc172 (diff)
scenery work
Diffstat (limited to 'floormat')
-rw-r--r--floormat/main.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/floormat/main.hpp b/floormat/main.hpp
index b4e4d536..a470f12e 100644
--- a/floormat/main.hpp
+++ b/floormat/main.hpp
@@ -19,6 +19,8 @@ template<typename Atlas, typename T> struct clickable;
struct floormat_main
{
+ struct draw_bounds final { std::int16_t minx, maxx, miny, maxy; };
+
floormat_main() noexcept;
virtual ~floormat_main() noexcept;
@@ -45,6 +47,7 @@ struct floormat_main
virtual std::uint32_t cursor() const noexcept = 0;
virtual global_coords pixel_to_tile(Vector2d position) const noexcept = 0;
+ virtual draw_bounds get_draw_bounds() const noexcept = 0;
virtual struct world& world() noexcept = 0;
virtual SDL_Window* window() noexcept = 0;