From ca6ff463979d5c250ab04e940bead875f11e7352 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 29 Nov 2022 19:35:25 +0100 Subject: scenery wip --- floormat/main.hpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'floormat') diff --git a/floormat/main.hpp b/floormat/main.hpp index a470f12e..af388de4 100644 --- a/floormat/main.hpp +++ b/floormat/main.hpp @@ -16,10 +16,18 @@ struct world; struct scenery; struct anim_atlas; template struct clickable; +struct floor_mesh; +struct wall_mesh; +struct anim_mesh; struct floormat_main { struct draw_bounds final { std::int16_t minx, maxx, miny, maxy; }; + struct meshes final { + floor_mesh& floor; + wall_mesh& wall; + anim_mesh& anim; + }; floormat_main() noexcept; virtual ~floormat_main() noexcept; @@ -48,6 +56,7 @@ struct floormat_main virtual global_coords pixel_to_tile(Vector2d position) const noexcept = 0; virtual draw_bounds get_draw_bounds() const noexcept = 0; + virtual struct meshes meshes() noexcept = 0; virtual struct world& world() noexcept = 0; virtual SDL_Window* window() noexcept = 0; -- cgit v1.2.3