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


C++ CCDirector::isSendCleanupToScene方法代码示例

本文整理汇总了C++中CCDirector::isSendCleanupToScene方法的典型用法代码示例。如果您正苦于以下问题:C++ CCDirector::isSendCleanupToScene方法的具体用法?C++ CCDirector::isSendCleanupToScene怎么用?C++ CCDirector::isSendCleanupToScene使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CCDirector的用法示例。


在下文中一共展示了CCDirector::isSendCleanupToScene方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: setNewScene

void CCTransitionScene::setNewScene(float dt)
{    
    CC_UNUSED_PARAM(dt);
    CCDirector::sharedDirector()->getScheduler()->unscheduleSelector(schedule_selector(CCTransitionScene::setNewScene), this);
    
    // Before replacing, save the "send cleanup to scene"
    CCDirector *director = CCDirector::sharedDirector();
    m_bIsSendCleanupToScene = director->isSendCleanupToScene();
    
    director->replaceScene(m_pInScene);
    
    // issue #267
    m_pOutScene->setVisible(true);
}
开发者ID:Jimlan,项目名称:CrossApp,代码行数:14,代码来源:CCTransition.cpp

示例2: setNewScene

void CCTransitionScene::setNewScene(ccTime dt)
{	
	// [self unschedule:_cmd]; 
	// "_cmd" is a local variable automatically defined in a method 
	// that contains the selector for the method
	this->unschedule(schedule_selector(CCTransitionScene::setNewScene));
	CCDirector *director = CCDirector::sharedDirector();
	// Before replacing, save the "send cleanup to scene"
	m_bIsSendCleanupToScene = director->isSendCleanupToScene();
	director->replaceScene(m_pInScene);
	// enable events while transitions
	CCTouchDispatcher::sharedDispatcher()->setDispatchEvents(true);
	// issue #267
	m_pOutScene->setIsVisible(true);
}
开发者ID:daoopp,项目名称:WebGame,代码行数:15,代码来源:CCTransition_mobile.cpp

示例3: finishAndCleanup

//------------------------------------------------------------------------------
bool finishAndCleanup(CCScene * pInScene, CCScene * pOutScene)
{
    // clean up     
    pInScene->setVisible(true);
    pInScene->setPosition(ccp(0, 0));
    pInScene->setScale(1.0f);
    pInScene->setRotation(0.0f);
    pInScene->getCamera()->restore();

    pOutScene->setVisible(false);
    pOutScene->setPosition(ccp(0, 0));
    pOutScene->setScale(1.0f);
    pOutScene->setRotation(0.0f);
    pOutScene->getCamera()->restore();


    // Before replacing, save the "send cleanup to scene"
    CCDirector *director = CCDirector::sharedDirector();
    director->setNotificationNode(pInScene);
    return director->isSendCleanupToScene();
}
开发者ID:sbc100,项目名称:OpenQuick,代码行数:22,代码来源:QTransition.cpp


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