axmol/tools/tolua++/CCTextureCache.pkg

24 lines
691 B
Plaintext

class CCTextureCache : public CCObject
{
CCTexture2D* addImage(const char* fileimage);
CCTexture2D* addUIImage(CCImage *image, const char *key);
CCTexture2D* textureForKey(const char* key);
CCTexture2D* addPVRImage(const char* filename);
void removeAllTextures();
void removeUnusedTextures();
void removeTexture(CCTexture2D* texture);
void removeTextureForKey(const char *textureKeyName);
void dumpCachedTextureInfo();
// XXX: deprecated
static CCTextureCache * sharedTextureCache();
static void reloadAllTextures();
static void purgeSharedTextureCache();
static CCTextureCache * getInstance();
static void destroyInstance();
};