diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-29 18:21:25 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2022-10-29 18:21:25 +0200 |
commit | d309ed0b2ac06d7ba48322303d56bf39c8b57fe4 (patch) | |
tree | 0b4444b6a3789c61e5fdd7a27af2519b22f7dac7 /draw/quad.cpp | |
parent | d36ca021562c7a5d9d012cfdcb6e3260e9acdae5 (diff) |
add wall outline wireframes
Diffstat (limited to 'draw/quad.cpp')
-rw-r--r-- | draw/quad.cpp | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/draw/quad.cpp b/draw/quad.cpp deleted file mode 100644 index dee53a75..00000000 --- a/draw/quad.cpp +++ /dev/null @@ -1,27 +0,0 @@ -#include "quad.hpp" -#include <array> -#include <Magnum/GL/Renderer.h> - -namespace floormat::wireframe { - -quad::vertex_array quad::make_vertex_array() const -{ - const float X = size[0]*.5f, Y = size[1]*.5f; - return {{ - { -X + center[0], -Y + center[1], center[2] }, - { X + center[0], -Y + center[1], center[2] }, - { X + center[0], Y + center[1], center[2] }, - { -X + center[0], Y + center[1], center[2] }, - }}; -} - -quad::quad(Vector3 center, Vector2 size, float line_width) : - center(center), size(size), line_width{line_width} -{} - -void quad::on_draw() const -{ - GL::Renderer::setLineWidth(line_width); -} - -} // namespace floormat::wireframe |