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

Method drawLine

core/2d/DrawNode.cpp:304–318  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302}
303
304void DrawNode::drawLine(const Vec2& origin,
305 const Vec2& destination,
306 const Color4F& color,
307 float thickness,
308 DrawNode::EndType etStart,
309 DrawNode::EndType etEnd)
310{
311 if (thickness <= 0.0f)
312 {
313 AXLOGW("{}: thickness <= 0", __FUNCTION__);
314 return;
315 }
316
317 _drawSegment(origin, destination, color, thickness, etStart, etEnd);
318}
319
320void DrawNode::drawPoly(const Vec2* poli,
321 unsigned int numberOfPoints,

Callers 6

updateContentMethod · 0.45
drawMethod · 0.45
DrawSolidCircleMethod · 0.45
DrawSegmentMethod · 0.45
drawDebugMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected