MCPcopy Create free account
hub / github.com/axmolengine/axmol / getSpriteFrame

Method getSpriteFrame

core/2d/Sprite.cpp:1627–1635  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1625}
1626
1627SpriteFrame* 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
1637SpriteBatchNode* Sprite::getBatchNode() const
1638{

Callers 10

startWithTargetMethod · 0.80
updateMethod · 0.80
copySpecialPropertiesMethod · 0.80
copySpecialPropertiesMethod · 0.80
copySpecialPropertiesMethod · 0.80
clearContentMethod · 0.80
drawFrameMethod · 0.80
_updateMeshMethod · 0.80

Calls

no outgoing calls

Tested by 1