summaryrefslogtreecommitdiffhomepage
path: root/src/chunk-scenery.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-22 03:56:58 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-22 03:56:58 +0100
commit9e749583791c9523efab90665ffd8f5c30e4f449 (patch)
treebcb7fd1774e0b1ca4f69ff19c9c2f9e3c63eac1a /src/chunk-scenery.cpp
parent34c451c6b64ba1c11efa9a390c16e2097a25279a (diff)
a wip
Diffstat (limited to 'src/chunk-scenery.cpp')
-rw-r--r--src/chunk-scenery.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/chunk-scenery.cpp b/src/chunk-scenery.cpp
index 946f835a..d167168e 100644
--- a/src/chunk-scenery.cpp
+++ b/src/chunk-scenery.cpp
@@ -2,13 +2,15 @@
#include "shaders/shader.hpp"
#include "object.hpp"
#include "anim-atlas.hpp"
-#include "tile-atlas.hpp"
+#include "quads.hpp"
#include <bit>
#include <Corrade/Containers/ArrayViewStl.h>
#include <Magnum/GL/Buffer.h>
namespace floormat {
+using namespace floormat::Quads;
+
auto chunk::ensure_scenery_mesh() noexcept -> scenery_mesh_tuple
{
Array<object_draw_order> array;
@@ -164,7 +166,7 @@ auto chunk::ensure_scenery_mesh(scenery_scratch_buffers buffers) noexcept -> sce
for (auto j = 0uz; j < 4; j++)
scenery_vertexes[i][j] = { quad[j], texcoords[j], depth };
- scenery_indexes[i] = tile_atlas::indices(i);
+ scenery_indexes[i] = quad_indexes(i);
i++;
}