diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-05 13:25:39 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-05 13:25:39 +0200 |
commit | 2c26d57dc97eb7105a6dca2089fd42847a8c2b37 (patch) | |
tree | c28d8e836312a40d22b491b58b15681699647183 /wall-mesh.hpp | |
parent | cbfe7450f67eb9e0f7c9ef49d593f88527230a88 (diff) |
a
Diffstat (limited to 'wall-mesh.hpp')
-rw-r--r-- | wall-mesh.hpp | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/wall-mesh.hpp b/wall-mesh.hpp index ef73e02b..9356f384 100644 --- a/wall-mesh.hpp +++ b/wall-mesh.hpp @@ -20,7 +20,6 @@ struct wall_mesh final private: static constexpr auto COUNT = TILE_MAX_DIM*2 * TILE_MAX_DIM*2; - static constexpr auto quad_index_count = 6; using texcoords_array = std::array<Vector2, 4>; using position_array = std::array<Vector3, 4>; @@ -41,10 +40,8 @@ private: GL::Mesh _mesh; GL::Buffer _vertex_buffer{vertex_array{}, Magnum::GL::BufferUsage::DynamicDraw}, - _index_buffer{_index_data, Magnum::GL::BufferUsage::StaticDraw}; - - static const std::array<std::array<UnsignedShort, 6>, COUNT> _index_data; - static decltype(_index_data) make_index_array(); + _index_buffer{make_index_array(), Magnum::GL::BufferUsage::StaticDraw}; + static std::array<std::array<UnsignedShort, 6>, COUNT> make_index_array(); }; } // namespace Magnum::Examples |