diff options
| author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 05:06:41 +0200 |
|---|---|---|
| committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-09 05:06:41 +0200 |
| commit | 94f6748d5f5b9fdc3047022fe59d66028bde63f3 (patch) | |
| tree | de3dd2e7944c9dea12523702773ce5a2f93beed5 /src/wireframe-quad.hpp | |
| parent | e3b2c9267e7a8da5adca522a48a9f9a8457f89d8 (diff) | |
a
Diffstat (limited to 'src/wireframe-quad.hpp')
| -rw-r--r-- | src/wireframe-quad.hpp | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/src/wireframe-quad.hpp b/src/wireframe-quad.hpp deleted file mode 100644 index 062bf913..00000000 --- a/src/wireframe-quad.hpp +++ /dev/null @@ -1,32 +0,0 @@ -#pragma once - -#include <Magnum/Math/Vector2.h> -#include <Magnum/Math/Vector3.h> -#include <Magnum/GL/Mesh.h> - -namespace Magnum::Examples::wireframe { - -template<typename T> -struct wireframe_mesh; - -struct quad final -{ - quad(Vector3 center, Vector2 size); - - static constexpr std::size_t num_vertices = 4; - static constexpr GL::MeshPrimitive primitive = GL::MeshPrimitive::LineLoop; - - using vertex_array = std::array<Vector3, num_vertices>; - - vertex_array make_vertex_array() const; - void on_draw() const; - -private: - Vector3 center; - Vector2 size; - float line_width = 2; -}; - - - -} // namespace Magnum::Examples::wireframe |
