summaryrefslogtreecommitdiffhomepage
path: root/draw/anim.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-04-02 05:31:06 +0200
committerStanislaw Halik <sthalik@misaki.pl>2023-04-02 05:31:06 +0200
commitab16b95656fbcf719604072263f8375cd80213c2 (patch)
tree41b52d7a95126e85c8f44adc6d7138a319746cb8 /draw/anim.hpp
parent93880a5b068239768ba8b6e562a21e3d9103c124 (diff)
a
Diffstat (limited to 'draw/anim.hpp')
-rw-r--r--draw/anim.hpp6
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();