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

Method drawPie

core/2d/DrawNode.cpp:670–689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

668}
669
670void DrawNode::drawPie(const Vec2& center,
671 float radius,
672 float rotation,
673 int startAngle,
674 int endAngle,
675 float scaleX,
676 float scaleY,
677 const Color4F& fillColor,
678 const Color4F& borderColor,
679 DrawMode drawMode,
680 float thickness)
681{
682 if (thickness < 0.0f)
683 {
684 AXLOGW("{}: thickness < 0, changed to 0", __FUNCTION__);
685 thickness = 0.0f;
686 }
687 _drawPie(center, radius, rotation, startAngle, endAngle, scaleX, scaleY, fillColor, borderColor, drawMode,
688 thickness);
689}
690
691void DrawNode::drawPie(const Vec2& center,
692 float radius,

Callers 2

updateMethod · 0.80
DrawNodePlaygroundMethod · 0.80

Calls

no outgoing calls

Tested by 2

updateMethod · 0.64
DrawNodePlaygroundMethod · 0.64