#pragma once #include #include #include #include #include namespace floormat::wireframe { struct quad_floor { quad_floor(Vector3 center, Vector2 size, float line_width); static constexpr size_t num_vertices = 4, num_indexes = 0; static constexpr auto primitive = GL::MeshPrimitive::LineLoop; using vertex_array = std::array; static ArrayView make_index_array() { return {}; } vertex_array make_vertex_array() const; void on_draw() const; private: Vector3 center; Vector2 size; float line_width; }; } // namespace floormat::wireframe