From 0ec88d181a5a5c3c3e791426b7fa01d44195ec8c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 9 Nov 2022 20:40:31 +0100 Subject: add forgotten animation drawing --- draw/anim.hpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'draw/anim.hpp') diff --git a/draw/anim.hpp b/draw/anim.hpp index 163c5b1a..324d8c3b 100644 --- a/draw/anim.hpp +++ b/draw/anim.hpp @@ -10,18 +10,20 @@ #include #include -namespace floormat::Serialize { struct anim_frame; } +//namespace floormat::Serialize { struct anim_frame; } namespace floormat { struct tile_shader; struct anim_atlas; -using anim_frame = Serialize::anim_frame; +struct chunk; +//using anim_frame = Serialize::anim_frame; struct anim_mesh final { anim_mesh(); - void draw(tile_shader& shader, const anim_atlas& atlas, rotation r, std::size_t frame, local_coords xy); + void draw(tile_shader& shader, chunk& c); + void draw(tile_shader& shader, anim_atlas& atlas, rotation r, std::size_t frame, local_coords xy); private: struct vertex_data final { -- cgit v1.2.3