当前位置: 首页>>代码示例>>C++>>正文


C++ CC_SAFE_DELETE函数代码示例

本文整理汇总了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 );
}
开发者ID:mcodegeeks,项目名称:OpenKODE-Framework,代码行数:4,代码来源:TestArtPig.cpp

示例2: CC_SAFE_DELETE

EventDispatcher::EventListenerVector::~EventListenerVector()
{
    CC_SAFE_DELETE(_sceneGraphListeners);
    CC_SAFE_DELETE(_fixedListeners);
}
开发者ID:ArkightCrossfaith,项目名称:learning-cocos2dx,代码行数:5,代码来源:CCEventDispatcher.cpp

示例3: CC_SAFE_DELETE

 void ComAudioReader::purge()
 {
     CC_SAFE_DELETE(_instanceComAudioReader);
 }
开发者ID:jun496276723,项目名称:CocosMFCEditor,代码行数:4,代码来源:ComAudioReader.cpp

示例4: CC_SAFE_DELETE

DiscJockey::~DiscJockey()
{
	CC_SAFE_DELETE(_dj);
}
开发者ID:TheWindShan,项目名称:Blocks,代码行数:4,代码来源:DiscJockey.cpp

示例5: CC_SAFE_DELETE

CAWebView::~CAWebView()
{
	CC_SAFE_DELETE(_impl);
}
开发者ID:tanjie0037,项目名称:CrossApp,代码行数:4,代码来源:CAWebView.cpp

示例6: CC_SAFE_DELETE

CCTextFieldTTF::~CCTextFieldTTF()
{
    CC_SAFE_DELETE(m_pInputText);
    CC_SAFE_DELETE(m_pPlaceHolder);
}
开发者ID:QiMa,项目名称:Cocos2dWindows,代码行数:5,代码来源:CCTextFieldTTF.cpp

示例7: CC_SAFE_DELETE

TableView::~TableView()
{
    CC_SAFE_DELETE(_indices);
}
开发者ID:knoxHuang,项目名称:cocos2d-x-lite,代码行数:4,代码来源:CCTableView.cpp

示例8: CC_SAFE_DELETE

PlantManager::~PlantManager()
{
	CC_SAFE_DELETE(m_plants);
}
开发者ID:guinao,项目名称:CallofDefense,代码行数:4,代码来源:PlantManager.cpp

示例9: CC_SAFE_DELETE

KDvoid SimpleAudioEngine::end ( KDvoid )
{
	CC_SAFE_DELETE ( l_pSharedEngine );
    return;
}
开发者ID:mcodegeeks,项目名称:OpenKODE-Framework,代码行数:5,代码来源:SimpleAudioEngine.cpp

示例10: CC_SAFE_DELETE

FrameData::~FrameData(void)
{
    CC_SAFE_DELETE(easingParams);
}
开发者ID:TheWindShan,项目名称:HYFish,代码行数:4,代码来源:CCDatas.cpp

示例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);
            }
            
        }
开发者ID:chengstory,项目名称:CSArmature,代码行数:64,代码来源:CSArmature.cpp

示例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;
	}
开发者ID:flyingpacer,项目名称:cocos2d-x-samples,代码行数:79,代码来源:CCEGLView_wophone.cpp

示例13: CC_SAFE_DELETE

CCEGLView::~CCEGLView()
{
    CC_SAFE_DELETE(m_pDelegate);
    CC_SAFE_DELETE(m_pEGL);
}
开发者ID:flyingpacer,项目名称:cocos2d-x-samples,代码行数:5,代码来源:CCEGLView_wophone.cpp

示例14: CC_SAFE_DELETE

PetDatablock::~PetDatablock()
{
	CC_SAFE_DELETE( pFeedPetData );
}
开发者ID:JoeHu,项目名称:magicpet,代码行数:4,代码来源:CPet.cpp

示例15: CC_SAFE_DELETE

EventCondition::~EventCondition()
{
	CC_SAFE_DELETE(m_value);
}
开发者ID:tangLovemi,项目名称:ThreeKingdom-src-and-scrips,代码行数:4,代码来源:EventCondition.cpp


注:本文中的CC_SAFE_DELETE函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。