diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-02 05:31:06 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-04-02 05:31:06 +0200 |
commit | ab16b95656fbcf719604072263f8375cd80213c2 (patch) | |
tree | 41b52d7a95126e85c8f44adc6d7138a319746cb8 /draw/anim.hpp | |
parent | 93880a5b068239768ba8b6e562a21e3d9103c124 (diff) |
a
Diffstat (limited to 'draw/anim.hpp')
-rw-r--r-- | draw/anim.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/draw/anim.hpp b/draw/anim.hpp index 9574f1d1..96c1de7e 100644 --- a/draw/anim.hpp +++ b/draw/anim.hpp @@ -26,10 +26,12 @@ struct anim_mesh final { anim_mesh(); - void draw(tile_shader& shader, chunk& c); + void draw(tile_shader& shader, const Vector2i& win_size, chunk& c, std::vector<clickable>& list); void draw(tile_shader& shader, anim_atlas& atlas, rotation r, size_t frame, const Vector3& pos, float depth); void draw(tile_shader& shader, anim_atlas& atlas, rotation r, size_t frame, local_coords xy, Vector2b offset, float depth_offset); - static void add_clickable(tile_shader& shader, const Vector2i& win_size, const std::shared_ptr<entity>& s, std::vector<clickable>& list); + static void add_clickable(tile_shader& shader, const Vector2i& win_size, + entity* s_, const chunk::topo_sort_data& data, + std::vector<clickable>& list); private: static std::array<UnsignedShort, 6> make_index_array(); |