现在的位置: 首页 > 综合 > 正文

cocos2dx教程之CCTextureCache

2018年04月22日 ⁄ 综合 ⁄ 共 616字 ⁄ 字号 评论关闭

class CC_DLL CCTextureCache : public
CCObject

{protected:  
CCDictionary*
m_pTextures;

Private:  void addImageAsyncCallBack(float
dt);

public:

CCDictionary*
snapshotTextures();

static CCTextureCache *
sharedTextureCache();

static void purgeSharedTextureCache();

CCTexture2D* addImage(const char*
fileimage);

void addImageAsync(const char *path,
CCObject *target,
SEL_CallFuncO selector);

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();

}

抱歉!评论已关闭.