void CCDisplayLinkDirector::mainLoop(void) { if (m_bPurgeDirecotorInNextLoop) { purgeDirector(); m_bPurgeDirecotorInNextLoop = false; } else if (! m_bInvalid) { drawScene(); // release the objects CCPoolManager::getInstance()->pop(); } }
void CCDisplayLinkDirector::mainLoop(void) { if (m_bPurgeDirecotorInNextLoop) { purgeDirector(); m_bPurgeDirecotorInNextLoop = false; } else if (! m_bInvalid) { m_pobOpenGLView->SetBackBufferRenderTarget(); drawScene(); // release the objects CCPoolManager::sharedPoolManager()->pop(); } }