summaryrefslogtreecommitdiffhomepage
path: root/draw
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-11-22 03:19:29 +0100
committerStanislaw Halik <sthalik@misaki.pl>2022-11-22 03:19:29 +0100
commit0fa4a8542bf9eda8bd9c28da199b3e90e04279b9 (patch)
tree8a91894a3b9eebdb8a7ef3c4b3e94d169efcf8ea /draw
parent966ac722d72c8d89e621987090b19f2bde0cb58c (diff)
wip
Diffstat (limited to 'draw')
-rw-r--r--draw/anim.cpp10
-rw-r--r--draw/anim.hpp1
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: