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

Method drawSolidTriangle

core/2d/DrawNode.cpp:772–784  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

770}
771
772void DrawNode::drawSolidTriangle(const Vec2* vertices3,
773 const Color4F& fillColor,
774 const Color4F& borderColor,
775 float thickness)
776{
777 if (thickness < 0.0f)
778 {
779 AXLOGW("{}: thickness < 0, changed to 0", __FUNCTION__);
780 thickness = 0.0f;
781 }
782 Vec2 vertices[3] = {vertices3[0], vertices3[1], vertices3[2]};
783 _drawTriangle(vertices, fillColor, borderColor, true, thickness);
784}
785
786void DrawNode::drawSolidTriangle(const Vec2& p1,
787 const Vec2& p2,

Callers 1

drawAllMethod · 0.80

Calls

no outgoing calls

Tested by 1

drawAllMethod · 0.64