Sunday, 2 June 2013

How to remove unused/all textures: cocos2d


Syntax for removing unused textures in cocos2d:



        [[CCTextureCache sharedTextureCache] removeUnusedTextures];


Syntax for removing all Texture:

        [[CCTextureCache sharedTextureCache] removeAllTextures];

No comments:

Post a Comment