MCPcopy Create free account
hub / github.com/axmolengine/axmol / drawSolidPoly

Method drawSolidPoly

core/2d/DrawNode.cpp:655–668  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

653}
654
655void DrawNode::drawSolidPoly(const Vec2* poli,
656 unsigned int numberOfPoints,
657 const Color4F& color,
658 float thickness,
659 const Color4F& borderColor,
660 bool isconvex)
661{
662 if (thickness < 0.0f)
663 {
664 AXLOGW("{}: thickness < 0, changed to 0", __FUNCTION__);
665 thickness = 0.0f;
666 }
667 _drawPolygon(poli, numberOfPoints, color, borderColor, true, thickness, isconvex);
668}
669
670void DrawNode::drawPie(const Vec2& center,
671 float radius,

Callers 4

updateMethod · 0.80
drawAllMethod · 0.80
drawAllv2Method · 0.80

Calls

no outgoing calls

Tested by 3

updateMethod · 0.64
drawAllMethod · 0.64
drawAllv2Method · 0.64