summaryrefslogtreecommitdiffhomepage
path: root/wall-mesh.hpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2022-10-02 22:43:49 +0200
committerStanislaw Halik <sthalik@misaki.pl>2022-10-02 22:43:49 +0200
commita16deb8ee39dd56f4b68a2808e4f619fd8d58ce7 (patch)
treeaef94a006bf34cb3696435c2284baf6efe8547c2 /wall-mesh.hpp
parentc8aa44e6b9543f5d90a02bc878d88ea07a747d78 (diff)
a
Diffstat (limited to 'wall-mesh.hpp')
-rw-r--r--wall-mesh.hpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/wall-mesh.hpp b/wall-mesh.hpp
index 02fafc27..1a9bb4e8 100644
--- a/wall-mesh.hpp
+++ b/wall-mesh.hpp
@@ -16,9 +16,6 @@ struct chunk;
struct wall_mesh final
{
wall_mesh();
- wall_mesh(wall_mesh&&) = delete;
- wall_mesh(const wall_mesh&) = delete;
-
void draw(tile_shader& shader, chunk& c);
private:
@@ -34,7 +31,6 @@ private:
};
using quad = std::array<vertex, 4>;
- using index_type = std::array<UnsignedShort, 6>;
using vertex_array = std::array<quad, COUNT>;
using texture_array = std::array<GL::Texture2D*, COUNT>;
@@ -47,7 +43,7 @@ private:
GL::Buffer _vertex_buffer{vertex_array{}, Magnum::GL::BufferUsage::StaticDraw},
_index_buffer{_index_data, Magnum::GL::BufferUsage::StaticDraw};
- static const std::array<index_type, COUNT> _index_data;
+ static const std::array<std::array<UnsignedShort, 6>, COUNT> _index_data;
static decltype(_index_data) make_index_array();
};