summaryrefslogtreecommitdiffhomepage
path: root/draw/anim.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-09 20:40:31 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-09 20:40:31 +0100
commit0ec88d181a5a5c3c3e791426b7fa01d44195ec8c (patch)
tree0c72a6fed79d5a4bb2e9d610cf03079cc342fae2 /draw/anim.hpp
parent9482f370e56397d50e5d7efef81a33af7390d07a (diff)
add forgotten animation drawing
Diffstat (limited to 'draw/anim.hpp')
-rw-r--r--draw/anim.hpp8
1 files changed, 5 insertions, 3 deletions
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 <Magnum/GL/Mesh.h>
#include <Magnum/GL/Buffer.h>
-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 {