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

Method drawPolygon

core/2d/DrawNode.cpp:600–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

598}
599
600void DrawNode::drawPolygon(const Vec2* verts,
601 int count,
602 const Color4F& fillColor,
603 float thickness,
604 const Color4F& borderColor,
605 bool isconvex)
606{
607 if (thickness < 0.0f)
608 {
609 AXLOGW("{}: thickness < 0, changed to 0", __FUNCTION__);
610 thickness = 0.0f;
611 }
612 _drawPolygon(verts, count, fillColor, borderColor, true, thickness, isconvex);
613}
614
615void DrawNode::drawPolygon(const Vec2* verts, int count, float thickness, const Color4F& borderColor, bool isconvex)
616{

Callers 15

cpSpaceDebugDrawShapeFunction · 0.45
DrawCircleFunction · 0.45
DrawPolygonFunction · 0.45
DrawAABBMethod · 0.45
updateMethod · 0.45
drawAllMethod · 0.45
drawAllv2Method · 0.45
NewDrawNodeTestMethod · 0.45
ChipmunkDebugDrawPolygonFunction · 0.45
ChipmunkDebugDrawBBFunction · 0.45
initMethod · 0.45
shapeMethod · 0.45

Calls

no outgoing calls

Tested by 12

DrawAABBMethod · 0.36
updateMethod · 0.36
drawAllMethod · 0.36
drawAllv2Method · 0.36
NewDrawNodeTestMethod · 0.36
ChipmunkDebugDrawPolygonFunction · 0.36
ChipmunkDebugDrawBBFunction · 0.36
initMethod · 0.36
shapeMethod · 0.36
setupMethod · 0.36
expectedBehaviourMethod · 0.36
reproduceBugMethod · 0.36