| 185 | } |
| 186 | |
| 187 | void GuiContext::drawPolyLines(PolyF const& poly, Vec4B const& color, float lineWidth) { |
| 188 | for (size_t i = 0; i < poly.sides(); ++i) |
| 189 | drawLine(poly.vertex(i), poly.vertex(i + 1), color, lineWidth); |
| 190 | } |
| 191 | |
| 192 | void GuiContext::drawTriangles(List<tuple<Vec2F, Vec2F, Vec2F>> const& triangles, Vec4B const& color) { |
| 193 | for (auto& poly : triangles) { |