Changeset 2222 for trunk/src/platform/android
- Timestamp:
- Jan 15, 2013, 11:41:52 PM (10 years ago)
- Location:
- trunk/src/platform/android
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/platform/android/androidapp.cpp
r2183 r2222 47 47 } 48 48 49 /* This is a fake Run() method. We just wait until we're called and49 /* This is a fake Tick() method. We just wait until we're called and 50 50 * signal nativeInit() that all the user's initialisation code was 51 51 * called. Then we sit here forever, the Java layer is in charge of 52 52 * calling TickDraw(). */ 53 void AndroidApp:: Run()53 void AndroidApp::Tick() 54 54 { 55 g_main_queue.Push(1); 56 g_main_queue.Push(1); 55 static int init = 0; 56 if (!init) 57 { 58 init = 1; 59 g_main_queue.Push(1); 60 g_main_queue.Push(1); 61 } 57 62 58 while (!Ticker::Finished()) 59 { 60 /* Do nothing while the real render thread does the job. The 61 * real stuff happens in nativeRender() */ 62 Timer t; 63 t.Wait(0.5f); 64 } 63 /* Do nothing while the real render thread does the job. The 64 * real stuff happens in nativeRender() */ 65 Timer t; 66 t.Wait(0.5f); 65 67 } 66 68 -
trunk/src/platform/android/androidapp.h
r2183 r2222 31 31 32 32 void ShowPointer(bool show); 33 void Run();33 void Tick(); 34 34 35 35 static void *MainRun(void *data);
Note: See TracChangeset
for help on using the changeset viewer.