void CCheckBox::setNormalPressImage(const char* pFile) { if( pFile && strlen(pFile) ) { CCTexture2D* pTexture = CCTextureCache::sharedTextureCache()->addImage(pFile); setNormalPressTexture(pTexture); } }
void CCheckBox::setNormalPressImage(const char* pFile) { if( pFile && strlen(pFile) ) { Texture2D* pTexture = Director::getInstance()->getTextureCache()->addImage(pFile); setNormalPressTexture(pTexture); } }