Hi there,
my version is “cocos2d-2.0-rc0a-x-2.0”
this is my test…
// textureForKey() test…
CCTextureCache::sharedTextureCache()->addImage(“pic.png”);
CCTexture2D * pTexture2D = CCTextureCache::sharedTextureCache()->textureForKey(“pic.png”); // pTexture2D is NULL on iPad
// removeTextureForKey() test…
CCTextureCache::sharedTextureCache()->addImage(“pic.png”);
CCTextureCache::sharedTextureCache()~~>removeTextureForKey; // nothing happened on iPad
don’t know what is going on…
i try to trace the method…
void CCTextureCache::removeTextureForKey
{
if
{
return;
}
string fullPath = CCFileUtils::fullPathFromRelativePath;
CCFileUtils::removeSuffixFromFile; // add this ???
m_pTextures~~>removeObjectForKey(fullPath.c_str());
}
Thanks