diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-01 12:32:37 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-03-01 12:32:37 +0100 |
commit | 7ebee3863c061b1d0b64839b56bbc70ff4e5d924 (patch) | |
tree | ac0356bdcbf9f77864cb2cb2a6b5f2798c6fb3db /draw/anim.hpp | |
parent | 078c376b6255fb6fd24362b27862819444327265 (diff) |
move scenery modify logic to scenery_ref
Diffstat (limited to 'draw/anim.hpp')
-rw-r--r-- | draw/anim.hpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/draw/anim.hpp b/draw/anim.hpp index 1ce38d08..ccb03403 100644 --- a/draw/anim.hpp +++ b/draw/anim.hpp @@ -17,21 +17,19 @@ namespace floormat { struct tile_shader; struct anim_atlas; struct chunk; -template<typename Atlas, typename T> struct clickable; +struct clickable; struct scenery; struct anim_mesh final { - using clickable_scenery = clickable<anim_atlas, scenery>; - anim_mesh(); void draw(tile_shader& shader, chunk& c); void draw(tile_shader& shader, anim_atlas& atlas, rotation r, std::size_t frame, const Vector3& pos, float depth); void draw(tile_shader& shader, anim_atlas& atlas, rotation r, std::size_t frame, local_coords xy, Vector2b offset); static void add_clickable(tile_shader& shader, const Vector2i& win_size, - chunk_coords c, std::uint8_t i, const std::shared_ptr<anim_atlas>& atlas, scenery& s, - std::vector<clickable_scenery>& clickable); + chunk_coords c, std::uint8_t i, const std::shared_ptr<anim_atlas>& atlas, scenery& s, + std::vector<clickable>& list); private: struct vertex_data final { |