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

Method drawCircle

core/2d/DrawNode.cpp:334–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

332}
333
334void DrawNode::drawCircle(const Vec2& center,
335 float radius,
336 float angle,
337 unsigned int segments,
338 bool drawLineToCenter,
339 float scaleX,
340 float scaleY,
341 const Color4F& color,
342 float thickness)
343{
344 if (thickness <= 0.0f)
345 {
346 AXLOGW("{}: thickness <= 0", __FUNCTION__);
347 return;
348 }
349 if (radius == 0.0f)
350 {
351 AXLOGW("{}: radius == 0", __FUNCTION__);
352 return;
353 }
354
355 _drawCircle(center, radius, angle, segments, drawLineToCenter, scaleX, scaleY, color, Color4F(), false, thickness);
356}
357
358void DrawNode::drawCircle(const Vec2& center,
359 float radius,

Callers 9

cpSpaceDebugDrawShapeFunction · 0.80
updateMethod · 0.80
drawAllMethod · 0.80
drawAllv2Method · 0.80
DrawNodeCircleTestMethod · 0.80
DrawNodePlaygroundMethod · 0.80
ChipmunkDebugDrawCircleFunction · 0.80
updateShapeMethod · 0.80
DrawCircleMethod · 0.80

Calls 1

Color4FFunction · 0.50

Tested by 6

updateMethod · 0.64
drawAllMethod · 0.64
drawAllv2Method · 0.64
DrawNodeCircleTestMethod · 0.64
DrawNodePlaygroundMethod · 0.64
ChipmunkDebugDrawCircleFunction · 0.64