Cocos2DXNA / cocos2d-xna

XNA Port of Cocos2d-X
www.cocos2dxna.com
225 stars 126 forks source link

Add consolidated methods to cleanup sprite sheets #446

Open totallyeviljake opened 9 years ago

totallyeviljake commented 9 years ago

There are several places where you have to free or cleanup your frames and textures when releasing a sprite sheet. This should be consolidated into the CCSpriteSheet class so that it cleans up its own messy entanglements with the sprite frame cache, texture cache, and animation cache.