예제 #1
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 ();
}
예제 #2
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 ();
}
예제 #3
0
//----------------------------------------------------------------//
static void _onTimer ( int millisec ) {
	UNUSED ( millisec );

	int timerInterval = ( int )( AKUGetSimStep () * 1000.0 );
	glutTimerFunc ( timerInterval, _onTimer, timerInterval );
	
	AKUUpdate ();
	
	glutPostRedisplay ();
}
예제 #4
0
//----------------------------------------------------------------//
static void _onUpdate () {

	AKUUpdate ();
	
	#ifdef AKUGLUT_USE_FMOD
		AKUFmodUpdate ();
	#endif
	
	glutPostRedisplay ();
}
예제 #5
0
//----------------------------------------------------------------//
void _onTimer ( int millisec ) {

	glutTimerFunc ( GLUT_TIMER_INTERVAL, _onTimer, GLUT_TIMER_INTERVAL );
	
	AKUUpdate ();
	
	#ifdef AKUGLUT_USE_FMOD
		AKUFmodUpdate ();
	#endif
	
	glutPostRedisplay ();
}
예제 #6
0
//----------------------------------------------------------------//
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 ();
}
예제 #7
0
//----------------------------------------------------------------//
void AKUModulesUpdate () {

	#if AKU_WITH_FMOD_DESIGNER
		AKUFmodDesignerUpdate ();
	#endif
	
	#if AKU_WITH_FMOD_EX
		AKUFmodExUpdate ();
	#endif
	
	#if AKU_WITH_HARNESS
		AKUHarnessUpdate ()
	#endif

	#if AKU_WITH_SIM
		AKUUpdate ();
	#endif

	#if AKU_WITH_PLUGINS
		AKUPluginsUpdate ();
	#endif
}
예제 #8
0
	//----------------------------------------------------------------//
	extern "C" void Java_com_ziplinegames_moai_Moai_AKUUpdate ( JNIEnv* env, jclass obj ) {

		InputEvent ievent;
		while ( inputQueue->Pop ( ievent )) {
			
			switch ( ievent.m_type ) {
				
			case InputEvent::INPUTEVENT_TOUCH:
				AKUEnqueueTouchEvent ( ievent.m_deviceId, ievent.m_sensorId, ievent.m_touchId, ievent.m_down, ievent.m_x, ievent.m_y );
				break;
			case InputEvent::INPUTEVENT_LEVEL:
				AKUEnqueueLevelEvent ( ievent.m_deviceId, ievent.m_sensorId, ievent.m_x, ievent.m_y, ievent.m_z );
				break;
			case InputEvent::INPUTEVENT_COMPASS:
				AKUEnqueueCompassEvent ( ievent.m_deviceId, ievent.m_sensorId, ievent.m_heading );
				break;
			case InputEvent::INPUTEVENT_LOCATION:
				AKUEnqueueLocationEvent ( ievent.m_deviceId, ievent.m_sensorId, ievent.m_longitude, ievent.m_latitude, ievent.m_altitude, ievent.m_hAccuracy, ievent.m_vAccuracy, ievent.m_speed );
				break;
			}
		}

		AKUUpdate ();
	}
예제 #9
0
void MoaiWidget::onUpdate(){
    AKUUpdate ();
    updateGL();
}