// 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 static CCScene scene() { CCScene pScene = CCScene.node(); TextureTest layer = new TextureTest(false, PerformanceTextureTest.TEST_COUNT, PerformanceTextureTest.s_nTexCurCase); pScene.addChild(layer); return pScene; }
public static CCScene scene() { CCScene pScene = new CCScene(); TextureTest layer = new TextureTest(false, PerformanceTextureTest.TEST_COUNT, PerformanceTextureTest.s_nTexCurCase); pScene.AddChild(layer); return(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); } }
public static CCScene scene() { CCScene pScene = new CCScene(AppDelegate.SharedWindow, AppDelegate.SharedViewport); TextureTest layer = new TextureTest(false, PerformanceTextureTest.TEST_COUNT, PerformanceTextureTest.s_nTexCurCase); pScene.AddChild(layer); return pScene; }