| 770 | } |
| 771 | |
| 772 | void 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 | |
| 786 | void DrawNode::drawSolidTriangle(const Vec2& p1, |
| 787 | const Vec2& p2, |