MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / drawPolyLines

Method drawPolyLines

source/windowing/StarGuiContext.cpp:187–190  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

185}
186
187void GuiContext::drawPolyLines(PolyF const& poly, Vec4B const& color, float lineWidth) {
188 for (size_t i = 0; i < poly.sides(); ++i)
189 drawLine(poly.vertex(i), poly.vertex(i + 1), color, lineWidth);
190}
191
192void GuiContext::drawTriangles(List<tuple<Vec2F, Vec2F, Vec2F>> const& triangles, Vec4B const& color) {
193 for (auto& poly : triangles) {

Callers 1

renderPolyMethod · 0.80

Calls 1

sidesMethod · 0.80

Tested by

no test coverage detected