From caacf24af8a51807105cd35407201d525a4e59f4 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 8 Oct 2022 22:14:29 +0200 Subject: a --- src/wireframe-mesh.cpp | 3 +++ src/wireframe-mesh.hpp | 2 ++ 2 files changed, 5 insertions(+) (limited to 'src') diff --git a/src/wireframe-mesh.cpp b/src/wireframe-mesh.cpp index 5b60cead..236f27ed 100644 --- a/src/wireframe-mesh.cpp +++ b/src/wireframe-mesh.cpp @@ -2,6 +2,7 @@ #include "shaders/tile-shader.hpp" #include #include +#include #include #include #include @@ -55,9 +56,11 @@ template wireframe_mesh::wireframe_mesh() template void wireframe_mesh::draw(tile_shader& shader, T x) { + GL::Renderer::setLineWidth(2); _positions_buffer.setData(x.make_vertex_positions_array(), GL::BufferUsage::DynamicDraw); if constexpr(T::num_indices > 0) _index_buffer.setData(x.make_index_array(), GL::BufferUsage::DynamicDraw); + _texture.bind(0); shader.draw(_mesh); } diff --git a/src/wireframe-mesh.hpp b/src/wireframe-mesh.hpp index c31ee1d0..28619e90 100644 --- a/src/wireframe-mesh.hpp +++ b/src/wireframe-mesh.hpp @@ -75,4 +75,6 @@ private: extern template struct wireframe_mesh; extern template struct wireframe_mesh; +using wireframe_quad_mesh = wireframe_mesh; + } // namespace Magnum::Examples -- cgit v1.2.3