summaryrefslogtreecommitdiffhomepage
path: root/draw
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-11 13:54:53 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-11 14:11:47 +0100
commit7867213a01fcabb1f05b1836c2ca59dc3bb2132f (patch)
tree44af754bed0278c8bf3435df6278bd291c3043e5 /draw
parent74cf06b6b217eff32a547cf73f051f27e6b80919 (diff)
rename tile_atlas -> ground_atlas
Diffstat (limited to 'draw')
-rw-r--r--draw/floor.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/draw/floor.cpp b/draw/floor.cpp
index 31626f1c..a073f39f 100644
--- a/draw/floor.cpp
+++ b/draw/floor.cpp
@@ -1,7 +1,7 @@
#include "floor.hpp"
#include "shaders/shader.hpp"
#include "src/chunk.hpp"
-#include "src/tile-atlas.hpp"
+#include "src/ground-atlas.hpp"
#include "compat/assert.hpp"
#include <Magnum/GL/MeshView.h>
@@ -13,13 +13,14 @@ void floor_mesh::draw(tile_shader& shader, chunk& c)
{
constexpr int quad_index_count = 6;
const auto [mesh_, ids, size] = c.ensure_ground_mesh();
- struct { tile_atlas* atlas = nullptr; size_t pos = 0; } last;
+ struct {
+ ground_atlas* atlas = nullptr; size_t pos = 0; } last;
GL::MeshView mesh{mesh_};
[[maybe_unused]] size_t draw_count = 0;
fm_debug_assert(size_t(mesh_.count()) == size*quad_index_count);
- const auto do_draw = [&](size_t i, tile_atlas* atlas, uint32_t max_index) {
+ const auto do_draw = [&](size_t i, ground_atlas* atlas, uint32_t max_index) {
if (atlas == last.atlas)
return;
if (auto len = i - last.pos; last.atlas && len > 0)