예제 #1
0
파일: main.c 프로젝트: mbrown1413/asteroids
void update(int d) {
    glutTimerFunc(20, update, 0);
    Game_update(game);
    glutPostRedisplay();

    //camera_distance += 0.1;
    //screen_width = 0.5 * camera_distance*tan((PI/180.0) * FOV_DEGREES) + 1;
}
예제 #2
0
파일: gtk.c 프로젝트: Centuriondan/xlennart
static int
timer_tick(gpointer arg) {
	UNUSED(arg);

	UI_restart_timer();
	Game_update();
	return TRUE;
}