diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-29 19:35:25 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-29 19:35:25 +0100 |
commit | ca6ff463979d5c250ab04e940bead875f11e7352 (patch) | |
tree | 479b06c90e1af3652c30e5554c3cada57ac81975 /floormat | |
parent | cd1e7b6564e8508f84e84706557b89eb5471a978 (diff) |
scenery wip
Diffstat (limited to 'floormat')
-rw-r--r-- | floormat/main.hpp | 9 |
1 files changed, 9 insertions, 0 deletions
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<typename Atlas, typename T> 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; |