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

Function drawLine

src/Core/Graphics/DrawUtils.cpp:26–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 2

drawPolygonFunction · 0.85
drawMethod · 0.85

Calls 1

drawMethod · 0.45

Tested by

no test coverage detected