| 554 | } |
| 555 | |
| 556 | void DrawNode::drawRect(const Vec2& p1, |
| 557 | const Vec2& p2, |
| 558 | const Vec2& p3, |
| 559 | const Vec2& p4, |
| 560 | const Color4F& color, |
| 561 | float thickness) |
| 562 | { |
| 563 | if (thickness <= 0.0f) |
| 564 | { |
| 565 | AXLOGW("{}: thickness <= 0", __FUNCTION__); |
| 566 | return; |
| 567 | } |
| 568 | |
| 569 | Vec2 line[5] = {p1, p2, p3, p4, p1}; |
| 570 | _drawPoly(line, 5, false, color, thickness, true); |
| 571 | } |
| 572 | |
| 573 | void DrawNode::drawRect(const Vec2& origin, const Vec2& destination, const Color4F& color, float thickness) |
| 574 | { |