Created
May 21, 2012 02:33
Revisions
-
darkfall renamed this gist
May 21, 2012 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
darkfall created this gist
May 21, 2012 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,18 @@ template<typename T> void CCDirector::popSceneWithTransition(float t) { CCAssert(m_pRunningScene != NULL, "running scene should not null"); m_pobScenesStack->removeLastObject(); unsigned int c = m_pobScenesStack->count(); if (c == 0) { end(); } else { m_bSendCleanupToScene = true; m_pNextScene = m_pobScenesStack->getObjectAtIndex(c - 1); CCScene* trans = T::transitionWithDuration(t, m_pNextScene); m_pobScenesStack->replaceObjectAtIndex(c-1, trans); m_pNextScene = trans; } }