diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-08 02:33:38 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-11-08 02:33:38 +0100 |
commit | 69324ea83c8c4e73e5e201e0ca53114484a49791 (patch) | |
tree | 85f77a6408cb06a405f48beedd229319f376755a /draw/anim.hpp | |
parent | 8df4de4557ea49ff39462505a0662aacca447bf3 (diff) |
a
Diffstat (limited to 'draw/anim.hpp')
-rw-r--r-- | draw/anim.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/draw/anim.hpp b/draw/anim.hpp index 85c73bcb..04fd92c8 100644 --- a/draw/anim.hpp +++ b/draw/anim.hpp @@ -1,6 +1,7 @@ #pragma once #include "local-coords.hpp" +#include "scenery.hpp" #include <array> #include <Corrade/Containers/ArrayViewStl.h> #include <Magnum/Magnum.h> @@ -20,7 +21,7 @@ using anim_frame = Serialize::anim_frame; struct anim_mesh final { anim_mesh(); - void draw(tile_shader& shader, const anim_atlas& atlas, const anim_frame& frame, local_coords pos); + void draw(tile_shader& shader, const anim_atlas& atlas, rotation r, std::size_t frame, local_coords xy); private: struct vertex_data final { Vector2 texcoords; }; |