summaryrefslogtreecommitdiffhomepage
path: root/draw/anim.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-25 14:36:29 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-25 14:36:29 +0100
commit947a8d3ab773b539dfc18da20d8e5934b5ea9d62 (patch)
treef1a2ce5e913c8553a3fd6087a70f84f82c00669b /draw/anim.cpp
parent7d659dbe06cd8efc1d6eb4ef2c5fbc8ae27a4568 (diff)
use operator""uz c++23 polyfill
Diffstat (limited to 'draw/anim.cpp')
-rw-r--r--draw/anim.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/draw/anim.cpp b/draw/anim.cpp
index 7f1d5cda..84afbfe3 100644
--- a/draw/anim.cpp
+++ b/draw/anim.cpp
@@ -71,7 +71,7 @@ void anim_mesh::draw(tile_shader& shader, chunk& c)
} last;
size_t i = 0;
- for (auto k = 0_uz; k < size; k++)
+ for (auto k = 0uz; k < size; k++)
{
fm_assert(es[k].e);
const auto& e = *es[k].e;
@@ -118,7 +118,7 @@ void anim_mesh::draw(tile_shader& shader, anim_atlas& atlas, rotation r, size_t
const auto& g = atlas.group(r);
const auto texcoords = atlas.texcoords_for_frame(r, frame, !g.mirror_from.isEmpty());
quad_data array;
- for (auto i = 0_uz; i < 4; i++)
+ for (auto i = 0uz; i < 4; i++)
array[i] = { pos[i], texcoords[i], depth };
_vertex_buffer.setSubData(0, array);
atlas.texture().bind(0);