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

Method drawPoly

source/windowing/StarCanvasWidget.cpp:62–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62void CanvasWidget::drawPoly(PolyF const& poly, Vec4B const& color, float lineWidth) {
63 m_renderOps.append(make_tuple(poly, color, lineWidth));
64}
65
66void CanvasWidget::drawTriangles(List<tuple<Vec2F, Vec2F, Vec2F>> const& triangles, Vec4B const& color) {
67 m_renderOps.append(make_tuple(triangles, color));

Callers 1

makeMethod · 0.80

Calls 1

appendMethod · 0.45

Tested by

no test coverage detected