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

Method drawSolidPolygon

core/2d/DrawNode.cpp:625–638  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

623}
624
625void DrawNode::drawSolidPolygon(const Vec2* verts,
626 int count,
627 const Color4F& fillColor,
628 float thickness,
629 const Color4F& borderColor,
630 bool isconvex)
631{
632 if (thickness < 0.0f)
633 {
634 AXLOGW("{}: thickness < 0, changed to 0", __FUNCTION__);
635 thickness = 0.0f;
636 }
637 _drawPolygon(verts, count, fillColor, borderColor, true, thickness, isconvex);
638}
639
640void DrawNode::drawSolidRect(const Vec2& origin,
641 const Vec2& destination,

Callers 1

updateMethod · 0.80

Calls

no outgoing calls

Tested by 1

updateMethod · 0.64