diff options
Diffstat (limited to 'draw')
| -rw-r--r-- | draw/anim.cpp | 10 | ||||
| -rw-r--r-- | draw/anim.hpp | 1 |
2 files changed, 0 insertions, 11 deletions
diff --git a/draw/anim.cpp b/draw/anim.cpp index d2f644a9..558dd197 100644 --- a/draw/anim.cpp +++ b/draw/anim.cpp @@ -22,16 +22,6 @@ std::array<UnsignedShort, 6> anim_mesh::make_index_array() }}; } -void anim_mesh::draw(tile_shader& shader, chunk& c) -{ - for (std::size_t i = 0; i < TILE_COUNT; i++) - { - const local_coords pos{i}; - if (auto [atlas, s] = c[pos].scenery(); atlas) - draw(shader, *atlas, s.r, s.frame, pos); - } -} - void anim_mesh::draw(tile_shader& shader, anim_atlas& atlas, rotation r, std::size_t frame, local_coords xy) { const auto center = Vector3(xy.x, xy.y, 0.f) * TILE_SIZE; diff --git a/draw/anim.hpp b/draw/anim.hpp index 324d8c3b..2b88e7af 100644 --- a/draw/anim.hpp +++ b/draw/anim.hpp @@ -22,7 +22,6 @@ struct chunk; struct anim_mesh final { anim_mesh(); - 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: |
