| 246 | } |
| 247 | |
| 248 | void CanvasWidget::renderPoly(Vec2F const& renderingOffset, PolyF poly, Vec4B const& color, float lineWidth) { |
| 249 | auto& context = GuiContext::singleton(); |
| 250 | poly.translate(renderingOffset); |
| 251 | if (m_ignoreInterfaceScale) |
| 252 | context.drawPolyLines(poly, color, lineWidth); |
| 253 | else |
| 254 | context.drawInterfacePolyLines(poly, color, lineWidth); |
| 255 | } |
| 256 | |
| 257 | void CanvasWidget::renderTriangles(Vec2F const& renderingOffset, List<tuple<Vec2F, Vec2F, Vec2F>> const& triangles, Vec4B const& color) { |
| 258 | auto& context = GuiContext::singleton(); |
nothing calls this directly
no test coverage detected