| 1625 | } |
| 1626 | |
| 1627 | SpriteFrame* Sprite::getSpriteFrame() const |
| 1628 | { |
| 1629 | if (nullptr != this->_spriteFrame) |
| 1630 | return this->_spriteFrame; |
| 1631 | |
| 1632 | return SpriteFrame::createWithTexture(_texture, AX_RECT_POINTS_TO_PIXELS(_rect), _rectRotated, |
| 1633 | AX_POINT_POINTS_TO_PIXELS(_unflippedOffsetPositionFromCenter), |
| 1634 | AX_SIZE_POINTS_TO_PIXELS(_originalContentSize)); |
| 1635 | } |
| 1636 | |
| 1637 | SpriteBatchNode* Sprite::getBatchNode() const |
| 1638 | { |
no outgoing calls