From 0fa4a8542bf9eda8bd9c28da199b3e90e04279b9 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Tue, 22 Nov 2022 03:19:29 +0100 Subject: wip --- draw/anim.cpp | 10 ---------- draw/anim.hpp | 1 - 2 files changed, 11 deletions(-) (limited to 'draw') 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 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: -- cgit v1.2.3