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

Method drawSolidCircle

core/2d/DrawNode.cpp:704–722  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

702}
703
704void DrawNode::drawSolidCircle(const Vec2& center,
705 float radius,
706 float angle,
707 unsigned int segments,
708 float scaleX,
709 float scaleY,
710 const Color4F& fillColor,
711 float thickness,
712 const Color4F& borderColor,
713 bool drawLineToCenter)
714{
715 if (thickness < 0.0f)
716 {
717 AXLOGW("{}: thickness < 0, changed to 0", __FUNCTION__);
718 thickness = 0.0f;
719 }
720 _drawCircle(center, radius, angle, segments, drawLineToCenter, scaleX, scaleY, borderColor, fillColor, true,
721 thickness);
722}
723
724void DrawNode::drawSolidCircle(const Vec2& center,
725 float radius,

Callers 10

updateMethod · 0.80
drawAllMethod · 0.80
drawAllv2Method · 0.80
DrawNodeCircleTestMethod · 0.80
DrawNodePlaygroundMethod · 0.80
addChildStencilsMethod · 0.80
updateShapeMethod · 0.80
DrawSolidCircleMethod · 0.80

Calls 1

Color4FFunction · 0.50

Tested by 7

updateMethod · 0.64
drawAllMethod · 0.64
drawAllv2Method · 0.64
DrawNodeCircleTestMethod · 0.64
DrawNodePlaygroundMethod · 0.64
addChildStencilsMethod · 0.64