// public float calculateDeltaTime( struct timeval *lastUpdate ) //{ // struct timeval now; // gettimeofday( &now, NULL); // float dt = (now.tv_sec - lastUpdate->tv_sec) + (now.tv_usec - lastUpdate->tv_usec) / 1000000.0f; // return dt; //} public static void runTextureTest() { s_nTexCurCase = 0; CCScene pScene = TextureTest.scene(); CCDirector.sharedDirector().replaceScene(pScene); }
// public float calculateDeltaTime( struct timeval *lastUpdate ) //{ // struct timeval now; // gettimeofday( &now, NULL); // float dt = (now.tv_sec - lastUpdate->tv_sec) + (now.tv_usec - lastUpdate->tv_usec) / 1000000.0f; // return dt; //} public static void runTextureTest() { s_nTexCurCase = 0; CCScene pScene = TextureTest.scene(); AppDelegate.SharedWindow.Director.ReplaceScene(pScene); }
public override void showCurrentTest() { CCScene pScene = null; switch (m_nCurCase) { case 0: pScene = TextureTest.scene(); break; } PerformanceTextureTest.s_nTexCurCase = m_nCurCase; if (pScene != null) { Scene.Director.ReplaceScene(pScene); } }