| 24 | } |
| 25 | |
| 26 | void drawLine(RenderTarget surface, int x1, int y1, int x2, int y2, int thickness, |
| 27 | const Color& color) |
| 28 | { |
| 29 | sf::Vertex line[] = { sf::Vertex(sf::Vector2f(x1, y1), color), |
| 30 | sf::Vertex(sf::Vector2f(x2, y2), color) }; |
| 31 | surface.draw(line, thickness, sf::Lines); |
| 32 | } |
| 33 | |
| 34 | void drawPolygon(RenderTarget surface, std::vector<Transform::UnitVector>& points, |
| 35 | const DrawPolygonOptions& options) |
no test coverage detected