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

Method drawPoly

core/2d/DrawNode.cpp:320–332  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

318}
319
320void DrawNode::drawPoly(const Vec2* poli,
321 unsigned int numberOfPoints,
322 bool closedPolygon,
323 const Color4F& color,
324 float thickness)
325{
326 if (thickness <= 0.0f)
327 {
328 AXLOGW("{}: thickness <= 0", __FUNCTION__);
329 return;
330 }
331 _drawPoly(poli, numberOfPoints, closedPolygon, color, thickness);
332}
333
334void DrawNode::drawCircle(const Vec2& center,
335 float radius,

Callers 15

updateContentMethod · 0.80
drawMethod · 0.80
drawMethod · 0.80
onEnterMethod · 0.80
updateMethod · 0.80
drawAllMethod · 0.80
drawAllv2Method · 0.80
DrawNodePolygonTestMethod · 0.80
DrawNodePlaygroundMethod · 0.80
LabelFNTBoundsMethod · 0.80
LabelTTFDistanceFieldMethod · 0.80
LabelTTFOldNewMethod · 0.80

Calls

no outgoing calls

Tested by 10

onEnterMethod · 0.64
updateMethod · 0.64
drawAllMethod · 0.64
drawAllv2Method · 0.64
DrawNodePolygonTestMethod · 0.64
DrawNodePlaygroundMethod · 0.64
LabelFNTBoundsMethod · 0.64
LabelTTFDistanceFieldMethod · 0.64
LabelTTFOldNewMethod · 0.64
LabelIssue12409TestMethod · 0.64