| 781 | } |
| 782 | |
| 783 | void Texture2D::drawAtPoint(const Vec2& point, float globalZOrder) |
| 784 | { |
| 785 | float width = (float)_pixelsWide * _maxS; |
| 786 | float height = (float)_pixelsHigh * _maxT; |
| 787 | Rect rect = {point.x, point.y, width, height}; |
| 788 | drawInRect(rect, globalZOrder); |
| 789 | } |
| 790 | |
| 791 | void Texture2D::drawInRect(const Rect& rect, float globalZOrder) |
| 792 | { |