diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-25 16:37:58 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-25 16:37:58 +0200 |
commit | f1df7c20129a1f1cc47c47e5731efd10f8e49aeb (patch) | |
tree | 0241e953981404e50a5c1fcd6d49f583ecf5995e /draw/wireframe-box.hpp | |
parent | a00ac8b5fed9d03cb2b3eafb4cd7d04546e341b1 (diff) |
rename in draw/
Diffstat (limited to 'draw/wireframe-box.hpp')
-rw-r--r-- | draw/wireframe-box.hpp | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/draw/wireframe-box.hpp b/draw/wireframe-box.hpp deleted file mode 100644 index b187dc83..00000000 --- a/draw/wireframe-box.hpp +++ /dev/null @@ -1,29 +0,0 @@ -#pragma once -#include <array> -#include <Corrade/Containers/ArrayViewStl.h> -#include <Magnum/Math/Vector3.h> -#include <Magnum/GL/Mesh.h> - -namespace floormat::wireframe { - -struct box final -{ - box(Vector3 center, Vector3 size, float line_width); - - static constexpr std::size_t num_vertices = 8, num_indexes = 12*2; - static constexpr GL::MeshPrimitive primitive = GL::MeshPrimitive::Lines; - - using vertex_array = std::array<Vector3, num_vertices>; - using index_array = std::array<UnsignedShort, num_indexes>; - - vertex_array make_vertex_array() const; - static index_array make_index_array(); - void on_draw() const; - -private: - Vector3 center; - Vector3 size; - float line_width = 2; -}; - -} // namespace floormat::wireframe |