Example #1
0
void CCDisplayLinkDirector::mainLoop(void)
{
	if (m_bPurgeDirecotorInNextLoop)
	{
		purgeDirector();
        m_bPurgeDirecotorInNextLoop = false;
	}
	else if (! m_bInvalid)
 	{
 		drawScene();
	 
 		// release the objects
 		CCPoolManager::getInstance()->pop();		
 	}
}
Example #2
0
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();
    }
}