diff options
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 { |