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

Method drawTriangle

core/2d/DrawNode.cpp:760–764  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

758}
759
760void DrawNode::drawTriangle(const Vec2* vertices3, const Color4F& color)
761{
762 Vec2 vertices[3] = {vertices3[0], vertices3[1], vertices3[2]};
763 _drawTriangle(vertices, Color4F::TRANSPARENT, color, false, 0.0f);
764}
765
766void DrawNode::drawTriangle(const Vec2& p1, const Vec2& p2, const Vec2& p3, const Color4F& color)
767{

Callers 5

updateMethod · 0.45
drawAllMethod · 0.45
drawAllv2Method · 0.45
drawVertRectFunction · 0.45

Calls

no outgoing calls

Tested by 3

updateMethod · 0.36
drawAllMethod · 0.36
drawAllv2Method · 0.36