diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-11 17:54:20 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-02-11 17:59:32 +0100 |
commit | 72735b0ba4fc4bcbc613afee5e438c2b20a54a51 (patch) | |
tree | 142f0a57486a8a6f1a1b35305de995c14c508273 /draw/anim.hpp | |
parent | 1c5be045bf12c04e1b7cbd96c4e7299a8e3c1ec7 (diff) |
src/scenery, draw/anim: add worldspace pixel offset for scenery
Diffstat (limited to 'draw/anim.hpp')
-rw-r--r-- | draw/anim.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/draw/anim.hpp b/draw/anim.hpp index 263d851d..1ce38d08 100644 --- a/draw/anim.hpp +++ b/draw/anim.hpp @@ -28,7 +28,7 @@ struct anim_mesh final void draw(tile_shader& shader, chunk& c); void draw(tile_shader& shader, anim_atlas& atlas, rotation r, std::size_t frame, const Vector3& pos, float depth); - void draw(tile_shader& shader, anim_atlas& atlas, rotation r, std::size_t frame, local_coords xy); + void draw(tile_shader& shader, anim_atlas& atlas, rotation r, std::size_t frame, local_coords xy, Vector2b offset); static void add_clickable(tile_shader& shader, const Vector2i& win_size, chunk_coords c, std::uint8_t i, const std::shared_ptr<anim_atlas>& atlas, scenery& s, std::vector<clickable_scenery>& clickable); |