Exemple #1
0
//----------------------------------------------------------------//
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 GLUTHOST_USE_FMOD_EX
		AKUFmodExUpdate ();
	#endif
	
	if ( sDynamicallyReevaluatsLuaFiles ) {		
		#ifdef _WIN32
			winhostext_Query ();
		#elif __APPLE__
			FWReloadChangedLuaFiles ();
		#endif
	}
	
	glutPostRedisplay ();
}
Exemple #2
0
//----------------------------------------------------------------//
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 ();
}