diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-08 23:41:39 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-08 23:41:39 +0200 |
| commit | 07d8adea58ec5b6b51704be1caf84012b0049313 (patch) | |
| tree | d7f7571c766d0241b2e598a284ff5d396d9f66dc /src/wireframe-mesh.hpp | |
| parent | dcac3d7bd83c0cbdddae433e98598289bb1b06cd (diff) | |
a
Diffstat (limited to 'src/wireframe-mesh.hpp')
| -rw-r--r-- | src/wireframe-mesh.hpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/wireframe-mesh.hpp b/src/wireframe-mesh.hpp index 855e673a..7a6892c2 100644 --- a/src/wireframe-mesh.hpp +++ b/src/wireframe-mesh.hpp @@ -24,7 +24,6 @@ concept traits = requires (const T& x) { {x.make_vertex_array() } -> std::same_as<std::array<Vector3, T::num_vertices>>; }; - struct null final { static constexpr auto primitive = GL::MeshPrimitive::Triangles; @@ -58,7 +57,7 @@ struct wireframe_mesh final void draw(tile_shader& shader, T traits); private: - GL::Buffer _vertex_buffer{}, _texcoords_buffer{std::array<Vector2, T::num_vertices>{}}; + GL::Buffer _vertex_buffer{std::array<Vector3, T::num_vertices>{}}, _texcoords_buffer{std::array<Vector2, T::num_vertices>{}}; GL::RectangleTexture _texture = wireframe::null::make_constant_texture(); GL::Mesh _mesh; }; |
