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

Method drawSegment

core/2d/DrawNode.cpp:585–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

583}
584
585void DrawNode::drawSegment(const Vec2& from,
586 const Vec2& to,
587 float thickness,
588 const Color4F& color,
589 DrawNode::EndType etStart,
590 DrawNode::EndType etEnd)
591{
592 if (thickness <= 0.0f)
593 {
594 AXLOGW("{}: thickness <= 0", __FUNCTION__);
595 return;
596 }
597 _drawSegment(from, to, color, thickness, etStart, etEnd);
598}
599
600void DrawNode::drawPolygon(const Vec2* verts,
601 int count,

Callers 13

DrawFatSegmentFunction · 0.80
updateMethod · 0.80
drawAllMethod · 0.80
drawAllv2Method · 0.80
onEnterMethod · 0.80
updateMethod · 0.80
DrawShapeFunction · 0.80
DrawConstraintFunction · 0.80
DrawShapeFunction · 0.80

Calls

no outgoing calls

Tested by 7

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