cocos2dx教程之CCTextureCache

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

}

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章