| 15 | } |
| 16 | |
| 17 | void drawPoint(RenderTarget surface, int x, int y, float radius, const Color& color) |
| 18 | { |
| 19 | sf::CircleShape drawPt; |
| 20 | drawPt.setRadius(radius); |
| 21 | drawPt.setPosition(sf::Vector2f(x, y)); |
| 22 | drawPt.setFillColor(color); |
| 23 | surface.draw(drawPt); |
| 24 | } |
| 25 | |
| 26 | void drawLine(RenderTarget surface, int x1, int y1, int x2, int y2, int thickness, |
| 27 | const Color& color) |
no test coverage detected