2013-07-29 14:04:51 +08:00
|
|
|
|
|
|
|
class CCTextureCache : public CCObject
|
|
|
|
{
|
|
|
|
CCTexture2D* addImage(const char* fileimage);
|
|
|
|
CCTexture2D* addUIImage(CCImage *image, const char *key);
|
|
|
|
CCTexture2D* textureForKey(const char* key);
|
|
|
|
|
|
|
|
void removeAllTextures();
|
|
|
|
void removeUnusedTextures();
|
|
|
|
void removeTexture(CCTexture2D* texture);
|
|
|
|
void removeTextureForKey(const char *textureKeyName);
|
|
|
|
void dumpCachedTextureInfo();
|
|
|
|
|
|
|
|
static void reloadAllTextures();
|
|
|
|
|
|
|
|
static CCTextureCache * getInstance();
|
|
|
|
static void destroyInstance();
|
|
|
|
};
|