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

Method drawCatmullRom

core/2d/DrawNode.cpp:536–544  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

534}
535
536void DrawNode::drawCatmullRom(const PointArray* pointsIn, unsigned int segments, const Color4F& color, float thickness, bool closed)
537{
538 if (thickness <= 0.0f)
539 {
540 AXLOGW("{}: thickness <= 0", __FUNCTION__);
541 return;
542 }
543 drawCardinalSpline(pointsIn, 0.5f, segments, color, thickness, closed);
544}
545
546void DrawNode::drawDot(const Vec2& pos, float radius, const Color4F& color)
547{

Callers 5

onEnterMethod · 0.80
updateMethod · 0.80
drawAllMethod · 0.80
drawAllv2Method · 0.80

Calls

no outgoing calls

Tested by 4

onEnterMethod · 0.64
updateMethod · 0.64
drawAllMethod · 0.64
drawAllv2Method · 0.64