diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 03:56:58 +0100 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2023-11-22 03:56:58 +0100 |
| commit | 9e749583791c9523efab90665ffd8f5c30e4f449 (patch) | |
| tree | bcb7fd1774e0b1ca4f69ff19c9c2f9e3c63eac1a /src/chunk-scenery.cpp | |
| parent | 34c451c6b64ba1c11efa9a390c16e2097a25279a (diff) | |
a wip
Diffstat (limited to 'src/chunk-scenery.cpp')
| -rw-r--r-- | src/chunk-scenery.cpp | 6 |
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++; } |
