//----------------------------------------------------------------// static void _onTimer ( int millisec ) { UNUSED ( millisec ); int timerInterval = ( int )( AKUGetSimStep () * 1000.0 ); glutTimerFunc ( timerInterval, _onTimer, timerInterval ); #ifdef GLUTHOST_USE_DEBUGGER AKUDebugHarnessUpdate (); #endif AKUUpdate (); #ifdef AKUGLUT_USE_FMOD AKUFmodUpdate (); #endif if ( sDynamicallyReevaluatsLuaFiles ) { #ifdef _WIN32 winhostext_Query (); #elif __APPLE__ FWReloadChangedLuaFiles (); #endif } glutPostRedisplay (); }
//----------------------------------------------------------------// static void _onTimer ( int millisec ) { UNUSED ( millisec ); double fSimStep = AKUGetSimStep (); int timerInterval = ( int )( fSimStep * 1000.0 ); glutTimerFunc ( timerInterval, _onTimer, timerInterval ); #if MOAI_HOST_USE_DEBUGGER AKUDebugHarnessUpdate (); #endif AKUUpdate (); #if MOAI_HOST_USE_FMOD_EX AKUFmodUpdate (); #endif #if MOAI_HOST_USE_FMOD_DESIGNER AKUFmodDesignerUpdate (( float )fSimStep ); #endif // if ( sDynamicallyReevaluateLuaFiles ) { // #ifdef _WIN32 // winhostext_Query (); // #elif __APPLE__ // FWReloadChangedLuaFiles (); // #endif // } glutPostRedisplay (); }
//----------------------------------------------------------------// static void _onUpdate () { AKUUpdate (); #ifdef AKUGLUT_USE_FMOD AKUFmodUpdate (); #endif glutPostRedisplay (); }
//----------------------------------------------------------------// void _onTimer ( int millisec ) { glutTimerFunc ( GLUT_TIMER_INTERVAL, _onTimer, GLUT_TIMER_INTERVAL ); AKUUpdate (); #ifdef AKUGLUT_USE_FMOD AKUFmodUpdate (); #endif glutPostRedisplay (); }
//----------------------------------------------------------------// static void _onTimer ( int millisec ) { UNUSED ( millisec ); int timerInterval = ( int )( AKUGetSimStep () * 1000.0 ); glutTimerFunc ( timerInterval, _onTimer, timerInterval ); AKUUpdate (); #ifdef AKUGLUT_USE_FMOD AKUFmodUpdate (); #endif glutPostRedisplay (); }