2011-06-14 14:31:25 +08:00
|
|
|
|
|
|
|
class CCSpriteFrameCache : public CCObject
|
|
|
|
{
|
2012-04-09 00:10:12 +08:00
|
|
|
//void addSpriteFramesWithDictionary(CCDictionary<std::string, CCObject*> *pobDictionary, CCTexture2D *pobTexture);
|
2012-02-02 14:26:38 +08:00
|
|
|
void addSpriteFramesWithFile(const char *pszPlist);
|
|
|
|
void addSpriteFramesWithFile(const char* plist, const char* textureFileName);
|
|
|
|
void addSpriteFramesWithFile(const char *pszPlist, CCTexture2D *pobTexture);
|
|
|
|
void addSpriteFrame(CCSpriteFrame *pobFrame, const char *pszFrameName);
|
|
|
|
|
|
|
|
void removeSpriteFrames(void);
|
|
|
|
void removeUnusedSpriteFrames(void);
|
|
|
|
void removeSpriteFrameByName(const char *pszName);
|
|
|
|
void removeSpriteFramesFromFile(const char* plist);
|
2012-04-09 00:10:12 +08:00
|
|
|
//void removeSpriteFramesFromDictionary(CCDictionary<std::string, CCSpriteFrame*> *dictionary);
|
2012-02-02 14:26:38 +08:00
|
|
|
void removeSpriteFramesFromTexture(CCTexture2D* texture);
|
|
|
|
|
|
|
|
CCSpriteFrame* spriteFrameByName(const char *pszName);
|
|
|
|
|
|
|
|
static CCSpriteFrameCache* sharedSpriteFrameCache(void);
|
|
|
|
static void purgeSharedSpriteFrameCache(void);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|