mirror of https://github.com/axmolengine/axmol.git
22 lines
980 B
Plaintext
22 lines
980 B
Plaintext
|
|
class CCSpriteFrameCache : public CCObject
|
|
{
|
|
//void addSpriteFramesWithDictionary(CCDictionary<std::string, CCObject*> *pobDictionary, CCTexture2D *pobTexture);
|
|
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);
|
|
//void removeSpriteFramesFromDictionary(CCDictionary<std::string, CCSpriteFrame*> *dictionary);
|
|
void removeSpriteFramesFromTexture(CCTexture2D* texture);
|
|
|
|
CCSpriteFrame* getSpriteFrameByName(const char *pszName);
|
|
|
|
static CCSpriteFrameCache* getInstance();
|
|
static void destroyInstance();
|
|
};
|