MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / drawPoint

Function drawPoint

src/Core/Graphics/DrawUtils.cpp:17–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 1

drawMethod · 0.85

Calls 4

setRadiusMethod · 0.80
setFillColorMethod · 0.80
setPositionMethod · 0.45
drawMethod · 0.45

Tested by

no test coverage detected