fzSpriteFrame SpriteFrameCache::getSpriteFrameByHash(uint32_t hash) const { framesMap::const_iterator it(m_frames.find(hash)); if(it == m_frames.end()) return fzSpriteFrame(); return it->second; }
fzSpriteFrame Sprite::getDisplayFrame() const { return fzSpriteFrame(getTexture(), m_textureRect, m_offset, m_contentSize, m_rectRotated); }
void Animation::addFrameWithTexture(Texture2D *texture, const fzRect& rect) { addFrame(fzSpriteFrame(texture, rect)); }