Showing posts with label unused. Show all posts
Showing posts with label unused. Show all posts

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];