Definition at line 67 of file AppControllerAlt.h. References mControls, mTimer, and OglEventLoop(). 00068 { 00069 00070 if (mControls.size() == 0) 00071 return 0; 00072 for (int s=0 ; s<mControls.size() ; s++) 00073 { 00074 mControls[s]->HandleStart(); 00075 if (mControls[s]->GetActive()) 00076 mControls[s]->HandleActivate(); 00077 } 00078 mTimer = new Timer(1); 00079 #ifndef NO_EVENT_LOOP 00080 OglEventLoop(); 00081 #endif 00082 return 1; 00083 /* 00084 #ifdef OGL_USING_GLUT 00085 ILOG_DEBUG("MainLoop: GLUT mode. Setting up glutIdleFunc() ..."); 00086 glutIdleFunc(AppController::DoProcessEvents); 00087 ILOG_DEBUG("MainLoop: Starting OglMainLoop()"); 00088 OglEventLoop(); 00089 return 1; 00090 #else 00091 ILOG_DEBUG("MainLoop: GLAUX mode."); 00092 bool done = GetAllDone(); 00093 while (!done) 00094 { 00095 for (int i=0 ; i<mControls.size() ; i++) 00096 { 00097 if (mControls[i]->GetActive()) 00098 mControls[i]->ComputeCycle(mTimer->SplitTime()); 00099 } 00100 done = (OglGui::Sys::Instance().WindowManage() == 1); 00101 if (!done) 00102 done = GetAllDone(); 00103 } 00104 return 1; 00105 #endif 00106 */ 00107 }
Here is the call graph for this function:
|