本文整理汇总了C++中CC_SAFE_DELETE函数的典型用法代码示例。如果您正苦于以下问题:C++ CC_SAFE_DELETE函数的具体用法?C++ CC_SAFE_DELETE怎么用?C++ CC_SAFE_DELETE使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了CC_SAFE_DELETE函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CC_SAFE_DELETE
TestArtPig::~TestArtPig ( KDvoid )
{
CC_SAFE_DELETE ( m_pSymbol );
}
示例2: CC_SAFE_DELETE
EventDispatcher::EventListenerVector::~EventListenerVector()
{
CC_SAFE_DELETE(_sceneGraphListeners);
CC_SAFE_DELETE(_fixedListeners);
}
示例3: CC_SAFE_DELETE
void ComAudioReader::purge()
{
CC_SAFE_DELETE(_instanceComAudioReader);
}
示例4: CC_SAFE_DELETE
DiscJockey::~DiscJockey()
{
CC_SAFE_DELETE(_dj);
}
示例5: CC_SAFE_DELETE
CAWebView::~CAWebView()
{
CC_SAFE_DELETE(_impl);
}
示例6: CC_SAFE_DELETE
CCTextFieldTTF::~CCTextFieldTTF()
{
CC_SAFE_DELETE(m_pInputText);
CC_SAFE_DELETE(m_pPlaceHolder);
}
示例7: CC_SAFE_DELETE
TableView::~TableView()
{
CC_SAFE_DELETE(_indices);
}
示例8: CC_SAFE_DELETE
PlantManager::~PlantManager()
{
CC_SAFE_DELETE(m_plants);
}
示例9: CC_SAFE_DELETE
KDvoid SimpleAudioEngine::end ( KDvoid )
{
CC_SAFE_DELETE ( l_pSharedEngine );
return;
}
示例10: CC_SAFE_DELETE
FrameData::~FrameData(void)
{
CC_SAFE_DELETE(easingParams);
}
示例11: CC_SAFE_DELETE
bool Armature::init(const char *name)
{
bool bRet = false;
do
{
//cocos2d::CCLog("Armature (%s) create.", name);
CC_SAFE_DELETE(m_pAnimation);
m_pAnimation = Animation::create(this);
CCAssert(m_pAnimation, "create Armature::m_pAnimation fail!");
m_pAnimation->retain();
CC_SAFE_DELETE(m_pBoneDic);
m_pBoneDic = CCDictionary::create();
CCAssert(m_pBoneDic, "create Armature::m_pBoneDic fail!");
m_pBoneDic->retain();
m_sBlendFunc.src = CC_BLEND_SRC;
m_sBlendFunc.dst = CC_BLEND_DST;
m_strName = name == NULL ? "" : name;
ArmatureDataManager *armatureDataManager = ArmatureDataManager::sharedArmatureDataManager();
if(m_strName.compare("") != 0)
{
m_strName = name;
AnimationData* animationData = armatureDataManager->getAnimationData(name);
CCAssert(animationData, "AnimationData not exist! ");
m_pAnimation->setAnimationData(animationData);
ArmatureData *armatureData = armatureDataManager->getArmatureData(name);
CCAssert(armatureData, "");
m_pArmatureData = armatureData;
CCDictElement *_element = NULL;
CCDictionary *boneDataDic = &armatureData->boneDataDic;
CCDICT_FOREACH(boneDataDic, _element)
{
Bone *bone = createBone(_element->getStrKey());
//! init bone's Tween to 1st movement's 1st frame
do {
MovementData *movData = animationData->getMovement(animationData->movementNames.at(0).c_str());
CC_BREAK_IF(!movData);
MovementBoneData *movBoneData = movData->getMovementBoneData(bone->getName().c_str());
CC_BREAK_IF(!movBoneData || movBoneData->frameList.count() <= 0);
FrameData *_frameData = movBoneData->getFrameData(0);
CC_BREAK_IF(!_frameData);
bone->getTweenData()->copy(_frameData);
} while (0);
}
}
示例12: create
static CCEGL * create(TWindow * pWindow)
{
CCEGL * pEGL = new CCEGL;
Boolean bSuccess = FALSE;
do
{
CC_BREAK_IF(! pEGL);
TUChar szError[] = {'E','R','R','O','R',0};
TUChar szEglInitFailed[] = {'e','g','l','I','n','i','t','i','a','l','i','z','e',' ','f','a','i','l','e','d',0};
TUChar szCreateContextFailed[] = {'e','g','l','C','r','e','a','t','e','C','o','n','t','e','x','t',' ','f','a','i','l','e','d',0};
TUChar szEglCreateWindowSurfaceFailed[] = {'e','g','l','C','r','e','a','t','e','W','i','n','d','o','w','S','u','r','f','a','c','e',' ','f','a','i','l','e','d',0};
TUChar szEglMakeCurrentFailed[] = {'e','g','l','M','a','k','e','C','u','r','r','e','n','t',' ','f','a','i','l','e','d',0};
pEGL->m_eglNativeWindow = pWindow;
EGLDisplay eglDisplay;
CC_BREAK_IF(EGL_NO_DISPLAY == (eglDisplay = eglGetDisplay(pEGL->m_eglNativeDisplay)));
EGLint nMajor, nMinor;
EGLBoolean bEglRet;
bEglRet = eglInitialize(eglDisplay, &nMajor, &nMinor);
if ( EGL_FALSE == bEglRet || 1 != nMajor )
{
TApplication::GetCurrentApplication()->MessageBox(szEglInitFailed, szError, WMB_OK);
break;
}
const EGLint aConfigAttribs[] =
{
EGL_LEVEL, 0,
EGL_SURFACE_TYPE, EGL_WINDOW_BIT,
EGL_RENDERABLE_TYPE, EGL_OPENGL_ES2_BIT,
EGL_NATIVE_RENDERABLE, EGL_FALSE,
EGL_DEPTH_SIZE, 16,
EGL_NONE,
};
EGLint iConfigs;
EGLConfig eglConfig;
CC_BREAK_IF( EGL_FALSE == eglChooseConfig(eglDisplay, aConfigAttribs, &eglConfig, 1, &iConfigs) ||
(iConfigs != 1) );
EGLContext eglContext = eglCreateContext(eglDisplay, eglConfig, NULL, NULL);
if (EGL_NO_CONTEXT == eglContext)
{
TApplication::GetCurrentApplication()->MessageBox(szCreateContextFailed, szError, WMB_OK);
break;
}
EGLSurface eglSurface;
eglSurface = eglCreateWindowSurface(eglDisplay, eglConfig, pEGL->m_eglNativeWindow, NULL);
if (EGL_NO_SURFACE == eglSurface)
{
TApplication::GetCurrentApplication()->MessageBox(szEglCreateWindowSurfaceFailed, szError, WMB_OK);
break;
}
bEglRet = eglMakeCurrent(eglDisplay, eglSurface, eglSurface, eglContext);
if (EGL_FALSE == bEglRet)
{
TApplication::GetCurrentApplication()->MessageBox(szEglMakeCurrentFailed, szError, WMB_OK);
break;
}
pEGL->m_eglDisplay = eglDisplay;
pEGL->m_eglConfig = eglConfig;
pEGL->m_eglContext = eglContext;
pEGL->m_eglSurface = eglSurface;
bSuccess = TRUE;
} while (0);
if (! bSuccess)
{
CC_SAFE_DELETE(pEGL);
}
return pEGL;
}
示例13: CC_SAFE_DELETE
CCEGLView::~CCEGLView()
{
CC_SAFE_DELETE(m_pDelegate);
CC_SAFE_DELETE(m_pEGL);
}
示例14: CC_SAFE_DELETE
PetDatablock::~PetDatablock()
{
CC_SAFE_DELETE( pFeedPetData );
}
示例15: CC_SAFE_DELETE
EventCondition::~EventCondition()
{
CC_SAFE_DELETE(m_value);
}