-static void display()
-{
- if(anim_stop_time > 0) {
- tmsec = anim_stop_time - start_time;
- } else {
- tmsec = glutGet(GLUT_ELAPSED_TIME) - start_time;
- }
-
- float tsec = (float)tmsec / 1000.0;
- float tanim = tsec * anim_speed;
-
- glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
- backdrop();
-
- glMatrixMode(GL_MODELVIEW);
- glLoadIdentity();
-
- glTranslatef(0, -2, -cam_dist);
- glRotatef(cam_phi, 1, 0, 0);
- glRotatef(cam_theta, 0, 1, 0);
-
- ground();
- faros();
-
- glPushMatrix();
-
- float beam_angle = tanim * 360;
-
- glRotatef(beam_angle, 0, 1, 0);
- light();
-
- glPopMatrix();