diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2024-08-26 20:52:50 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-09-20 16:08:46 +0200 |
| commit | b0e86fb89d8ea94601b0244f918df07a3fa82a9e (patch) | |
| tree | 9dd02047e1fbc93c83193a9921c8dd99e0407a16 /src/chunk.hpp | |
| parent | 8eabcf8277657020907ca8b3d71bbf64baf48f71 (diff) | |
src/chunk: allow arbitrary amount of wall quads for rendering
It's required for drawing holes on walls.
Diffstat (limited to 'src/chunk.hpp')
| -rw-r--r-- | src/chunk.hpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/chunk.hpp b/src/chunk.hpp index e6379507..335d3440 100644 --- a/src/chunk.hpp +++ b/src/chunk.hpp @@ -107,10 +107,6 @@ public: void remove_object(size_t i); void sort_objects(); - // for drawing only - static constexpr size_t max_wall_quad_count = - TILE_COUNT*Wall::Direction_COUNT*(Wall::Group_COUNT+4); - pass_region make_pass_region(bool debug = false, ArrayView<const Vector2i> positions = {}); pass_region make_pass_region(const Search::pred& f, bool debug = false, ArrayView<const Vector2i> positions = {}); @@ -125,7 +121,7 @@ public: { std::array<bptr<wall_atlas>, 2*TILE_COUNT> atlases; std::array<variant_t, 2*TILE_COUNT> variants; - std::array<uint_fast16_t, max_wall_quad_count> mesh_indexes; + Array<uint_fast16_t> mesh_indexes; }; private: |
