+ case ' ':
+ if(anim_stop_time > 0) {
+ start_time += glutGet(GLUT_ELAPSED_TIME) - anim_stop_time;
+ anim_stop_time = 0;
+ } else {
+ anim_stop_time = glutGet(GLUT_ELAPSED_TIME);
+ }
+ break;
+ case '=':
+ //printf("prin %u\n", glutGet(GLUT_ELAPSED_TIME) - start_time);
+ //start_time += calc_timeshift(anim_speed, anim_speed + 0.1);
+ anim_speed += 0.1;
+ break;
+ case '-':
+ //start_time += calc_timeshift(anim_speed, anim_speed - 0.1);
+ anim_speed -= 0.1;
+ if(anim_speed < 0)
+ anim_speed = 0;
+ break;