| 638 | } |
| 639 | |
| 640 | void DrawNode::drawSolidRect(const Vec2& origin, |
| 641 | const Vec2& destination, |
| 642 | const Color4F& fillColor, |
| 643 | float thickness, |
| 644 | const Color4F& borderColor) |
| 645 | { |
| 646 | if (thickness < 0.0f) |
| 647 | { |
| 648 | AXLOGW("{}: thickness < 0, changed to 0", __FUNCTION__); |
| 649 | thickness = 0.0f; |
| 650 | } |
| 651 | Vec2 _vertices[] = {origin, Vec2(destination.x, origin.y), destination, Vec2(origin.x, destination.y), origin}; |
| 652 | _drawPolygon(_vertices, 5, fillColor, borderColor, true, thickness, true); |
| 653 | } |
| 654 | |
| 655 | void DrawNode::drawSolidPoly(const Vec2* poli, |
| 656 | unsigned int numberOfPoints, |