1 /**************************************************************************
2 * GLmain.c -- top level sim routines
4 * Written by Curtis Olson for OpenGL, started May 1997.
6 * Copyright (C) 1997 Curtis L. Olson - curt@infoplane.com
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public License as
10 * published by the Free Software Foundation; either version 2 of the
11 * License, or (at your option) any later version.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
18 * You should have received a copy of the GNU General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
23 * (Log is kept at end of this file)
24 **************************************************************************/
38 #include "../constants.h"
40 #include "../Aircraft/aircraft.h"
41 #include "../Scenery/mesh.h"
42 #include "../Scenery/scenery.h"
43 #include "../Math/fg_geodesy.h"
44 #include "../Math/fg_random.h"
45 #include "../Math/mat3.h"
46 #include "../Math/polar.h"
47 #include "../Time/fg_timer.h"
48 #include "../Time/sunpos.h"
49 #include "../Weather/weather.h"
52 /* This is a record containing all the info for the aircraft currently
54 struct aircraft_params current_aircraft;
57 static GLfloat win_ratio = 1.0;
60 static GLfloat sun_vec[4] = {1.0, 0.0, 0.0, 0.0 };
63 /* extern struct mesh *mesh_ptr; */
64 /* Function prototypes */
65 /* GLint fgSceneryCompile_OLD(); */
66 /* static void fgSceneryDraw_OLD(); */
68 /* pointer to scenery structure */
69 /* static GLint scenery, runway; */
72 double fogDensity = 60000.0; /* in meters */
73 double view_offset = 0.0;
74 double goal_view_offset = 0.0;
77 #define DEFAULT_TIMER_HZ 20
78 #define DEFAULT_MULTILOOP 6
79 #define DEFAULT_MODEL_HZ (DEFAULT_TIMER_HZ * DEFAULT_MULTILOOP)
87 /**************************************************************************
88 * fgInitVisuals() -- Initialize various GL/view parameters
89 **************************************************************************/
91 static void fgInitVisuals() {
92 /* if the 4th field is 0.0, this specifies a direction ... */
93 static GLfloat fogColor[4] = {0.65, 0.65, 0.85, 1.0};
95 glEnable( GL_DEPTH_TEST );
96 /* glFrontFace(GL_CW); */
97 glEnable( GL_CULL_FACE );
99 /* If enabled, normal vectors specified with glNormal are scaled
100 to unit length after transformation. See glNormal. */
101 glEnable( GL_NORMALIZE );
103 glLightfv( GL_LIGHT0, GL_POSITION, sun_vec );
104 glEnable( GL_LIGHTING );
105 glEnable( GL_LIGHT0 );
107 glShadeModel( GL_FLAT ); /* glShadeModel( GL_SMOOTH ); */
110 glFogi (GL_FOG_MODE, GL_LINEAR);
111 /* glFogf (GL_FOG_START, 1.0); */
112 glFogf (GL_FOG_END, fogDensity);
113 glFogfv (GL_FOG_COLOR, fogColor);
114 /* glFogf (GL_FOG_DENSITY, fogDensity); */
115 /* glHint (GL_FOG_HINT, GL_FASTEST); */
117 glClearColor(0.6, 0.6, 0.9, 1.0);
121 /**************************************************************************
122 * Update the view volume, position, and orientation
123 **************************************************************************/
125 static void fgUpdateViewParams() {
126 struct fgCartesianPoint view_pos /*, alt_up */;
127 struct flight_params *f;
128 MAT3mat R, TMP, UP, LOCAL, VIEW;
129 MAT3vec vec, view_up, forward, view_forward, local_up;
131 f = ¤t_aircraft.flight;
133 /* Tell GL we are about to modify the projection parameters */
134 glMatrixMode(GL_PROJECTION);
136 gluPerspective(45.0, 1.0/win_ratio, 1.0, 200000.0);
138 glMatrixMode(GL_MODELVIEW);
141 /* calculate view position in current FG view coordinate system */
142 view_pos = fgPolarToCart(FG_Longitude, FG_Lat_geocentric,
143 FG_Radius_to_vehicle * FEET_TO_METER + 1.0);
144 view_pos.x -= scenery.center.x;
145 view_pos.y -= scenery.center.y;
146 view_pos.z -= scenery.center.z;
148 printf("View pos = %.4f, %.4f, %.4f\n", view_pos.x, view_pos.y, view_pos.z);
150 /* Derive the LOCAL aircraft rotation matrix (roll, pitch, yaw) */
151 MAT3_SET_VEC(vec, 0.0, 0.0, 1.0);
152 MAT3rotate(R, vec, FG_Phi);
153 /* printf("Roll matrix\n"); */
154 /* MAT3print(R, stdout); */
156 MAT3_SET_VEC(vec, 0.0, 1.0, 0.0);
157 /* MAT3mult_vec(vec, vec, R); */
158 MAT3rotate(TMP, vec, FG_Theta);
159 /* printf("Pitch matrix\n"); */
160 /* MAT3print(TMP, stdout); */
163 MAT3_SET_VEC(vec, 1.0, 0.0, 0.0);
164 /* MAT3mult_vec(vec, vec, R); */
165 /* MAT3rotate(TMP, vec, FG_Psi - FG_PI_2); */
166 MAT3rotate(TMP, vec, -FG_Psi);
167 /* printf("Yaw matrix\n");
168 MAT3print(TMP, stdout); */
169 MAT3mult(LOCAL, R, TMP);
170 /* printf("LOCAL matrix\n"); */
171 /* MAT3print(LOCAL, stdout); */
173 /* Derive the local UP transformation matrix based on *geodetic*
175 MAT3_SET_VEC(vec, 0.0, 0.0, 1.0);
176 MAT3rotate(R, vec, FG_Longitude); /* R = rotate about Z axis */
177 /* printf("Longitude matrix\n"); */
178 /* MAT3print(R, stdout); */
180 MAT3_SET_VEC(vec, 0.0, 1.0, 0.0);
181 MAT3mult_vec(vec, vec, R);
182 MAT3rotate(TMP, vec, -FG_Latitude); /* TMP = rotate about X axis */
183 /* printf("Latitude matrix\n"); */
184 /* MAT3print(TMP, stdout); */
186 MAT3mult(UP, R, TMP);
187 /* printf("Local up matrix\n"); */
188 /* MAT3print(UP, stdout); */
190 MAT3_SET_VEC(local_up, 1.0, 0.0, 0.0);
191 MAT3mult_vec(local_up, local_up, UP);
193 printf(" Local Up = (%.4f, %.4f, %.4f)\n", local_up[0], local_up[1],
196 /* Alternative method to Derive local up vector based on
197 * *geodetic* coordinates */
198 /* alt_up = fgPolarToCart(FG_Longitude, FG_Latitude, 1.0); */
199 /* printf(" Alt Up = (%.4f, %.4f, %.4f)\n",
200 alt_up.x, alt_up.y, alt_up.z); */
202 /* Derive the VIEW matrix */
203 MAT3mult(VIEW, LOCAL, UP);
204 /* printf("VIEW matrix\n"); */
205 /* MAT3print(VIEW, stdout); */
207 /* generate the current up, forward, and fwrd-view vectors */
208 MAT3_SET_VEC(vec, 1.0, 0.0, 0.0);
209 MAT3mult_vec(view_up, vec, VIEW);
211 MAT3_SET_VEC(vec, 0.0, 0.0, 1.0);
212 MAT3mult_vec(forward, vec, VIEW);
213 printf("Forward vector is (%.2f,%.2f,%.2f)\n", forward[0], forward[1],
216 MAT3rotate(TMP, view_up, view_offset);
217 MAT3mult_vec(view_forward, forward, TMP);
219 gluLookAt(view_pos.x, view_pos.y, view_pos.z,
220 view_pos.x + view_forward[0], view_pos.y + view_forward[1],
221 view_pos.z + view_forward[2],
222 view_up[0], view_up[1], view_up[2]);
224 glLightfv( GL_LIGHT0, GL_POSITION, sun_vec );
228 /**************************************************************************
229 * Update all Visuals (redraws anything graphics related)
230 **************************************************************************/
232 static void fgUpdateVisuals( void ) {
233 /* update view volume parameters */
234 fgUpdateViewParams();
236 glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
238 /* Tell GL we are switching to model view parameters */
239 glMatrixMode(GL_MODELVIEW);
240 /* glLoadIdentity(); */
251 /**************************************************************************
252 * Update internal time dependent calculations (i.e. flight model)
253 **************************************************************************/
255 void fgUpdateTimeDepCalcs(int multi_loop) {
256 struct flight_params *f;
257 struct fgCartesianPoint sunpos;
258 double sun_lon, sun_gd_lat, sun_gc_lat, sl_radius;
260 static int time_warp = 0;
262 f = ¤t_aircraft.flight;
264 /* update the flight model */
265 if ( multi_loop < 0 ) {
266 multi_loop = DEFAULT_MULTILOOP;
269 /* printf("updating flight model x %d\n", multi_loop); */
270 fgFlightModelUpdate(FG_LARCSIM, f, multi_loop);
272 /* refresh sun position */
274 fgSunPosition(time(NULL) + time_warp, &sun_lon, &sun_gd_lat);
275 fgGeodToGeoc(sun_gd_lat, 20000.0, &sl_radius, &sun_gc_lat);
276 sunpos = fgPolarToCart(sun_lon, sun_gc_lat, sl_radius);
277 printf("Time warp = %.2f Sun position is (%.2f, %.2f, %.2f)\n",
278 time_warp / 3600.0, sunpos.x, sunpos.y, sunpos.z);
280 /* the sun position has to be translated just like everything else */
281 sun_vec[0] = sunpos.x - scenery.center.x;
282 sun_vec[1] = sunpos.y - scenery.center.y;
283 sun_vec[2] = sunpos.z - scenery.center.z;
284 /* make this a directional light source only */
287 /* update the view angle */
288 for ( i = 0; i < multi_loop; i++ ) {
289 if ( fabs(goal_view_offset - view_offset) < 0.05 ) {
290 view_offset = goal_view_offset;
293 /* move view_offset towards goal_view_offset */
294 if ( goal_view_offset > view_offset ) {
295 if ( goal_view_offset - view_offset < FG_PI ) {
301 if ( view_offset - goal_view_offset < FG_PI ) {
307 if ( view_offset > FG_2PI ) {
308 view_offset -= FG_2PI;
309 } else if ( view_offset < 0 ) {
310 view_offset += FG_2PI;
317 void fgInitTimeDepCalcs() {
318 /* initialize timer */
321 fgTimerInit( 1.0 / DEFAULT_TIMER_HZ, fgUpdateTimeDepCalcs );
327 /**************************************************************************
328 * Scenery management routines
329 **************************************************************************/
331 /* static void fgSceneryInit_OLD() { */
333 /* scenery = fgSceneryCompile_OLD();
334 runway = fgRunwayHack_OLD(0.69, 53.07);
338 /* create the scenery */
339 /* GLint fgSceneryCompile_OLD() {
342 scenery = mesh2GL(mesh_ptr_OLD);
348 /* hack in a runway */
349 /* GLint fgRunwayHack_OLD(double width, double length) {
350 static GLfloat concrete[4] = { 0.5, 0.5, 0.5, 1.0 };
351 static GLfloat line[4] = { 0.9, 0.9, 0.9, 1.0 };
354 float line_len, line_width_2, cur_pos;
356 runway = glGenLists(1);
357 glNewList(runway, GL_COMPILE);
360 /* glBegin(GL_POLYGON);
361 glMaterialfv( GL_FRONT, GL_AMBIENT_AND_DIFFUSE, concrete );
362 glNormal3f(0.0, 0.0, 1.0);
364 glVertex3d( 0.0, -width/2.0, 0.0);
365 glVertex3d( 0.0, width/2.0, 0.0);
366 glVertex3d(length, width/2.0, 0.0);
367 glVertex3d(length, -width/2.0, 0.0);
370 /* draw center line */
371 /* glMaterialfv( GL_FRONT, GL_AMBIENT_AND_DIFFUSE, line );
372 line_len = length / ( 2 * num_lines + 1);
373 printf("line_len = %.3f\n", line_len);
376 for ( i = 0; i < num_lines; i++ ) {
378 glVertex3d( cur_pos, -line_width_2, 0.005);
379 glVertex3d( cur_pos, line_width_2, 0.005);
381 glVertex3d( cur_pos, line_width_2, 0.005);
382 glVertex3d( cur_pos, -line_width_2, 0.005);
393 /* draw the scenery */
394 /*static void fgSceneryDraw_OLD() {
395 static float z = 32.35;
401 printf("*** Drawing runway at %.2f\n", z);
403 glTranslatef( -398391.28, 120070.41, 32.35);
404 glRotatef(170.0, 0.0, 0.0, 1.0);
411 /* What should we do when we have nothing else to do? How about get
412 * ready for the next move and update the display? */
413 static void fgMainLoop( void ) {
414 static int remainder = 0;
415 int elapsed, multi_loop;
417 struct flight_params *f;
419 f = ¤t_aircraft.flight;
421 elapsed = fgGetTimeInterval();
422 printf("Time interval is = %d, previous remainder is = %d\n", elapsed,
424 printf("--> Frame rate is = %.2f\n", 1000.0 / (float)elapsed);
425 elapsed += remainder;
427 multi_loop = ((float)elapsed * 0.001) * DEFAULT_MODEL_HZ;
428 remainder = elapsed - ((multi_loop*1000) / DEFAULT_MODEL_HZ);
429 printf("Model iterations needed = %d, new remainder = %d\n", multi_loop,
435 if ( ! use_signals ) {
437 fgUpdateTimeDepCalcs(multi_loop);
440 /* I'm just sticking this here for now, it should probably move
442 rough_elev = mesh_altitude(FG_Longitude * RAD_TO_ARCSEC,
443 FG_Latitude * RAD_TO_ARCSEC);
444 printf("Ground elevation is %.2f meters here.\n", rough_elev);
445 /* FG_Runway_altitude = rough_elev * METER_TO_FEET; */
447 if ( FG_Altitude * FEET_TO_METER < rough_elev + 3.758099) {
448 /* set this here, otherwise if we set runway height above our
449 current height we get a really nasty bounce. */
450 FG_Runway_altitude = FG_Altitude - 3.758099;
452 /* now set aircraft altitude above ground */
453 FG_Altitude = rough_elev * METER_TO_FEET + 3.758099;
454 printf("<*> resetting altitude to %.0f meters\n",
455 FG_Altitude * FEET_TO_METER);
458 /* update the weather for our current position */
459 fgWeatherUpdate(FG_Longitude * RAD_TO_ARCSEC,
460 FG_Latitude * RAD_TO_ARCSEC,
461 FG_Altitude * FEET_TO_METER);
465 /**************************************************************************
466 * Handle new window size or exposure
467 **************************************************************************/
469 static void fgReshape( int width, int height ) {
470 /* Do this so we can call fgReshape(0,0) ourselves without having to know
471 * what the values of width & height are. */
472 if ( (height > 0) && (width > 0) ) {
473 win_ratio = (GLfloat) height / (GLfloat) width;
476 /* Inform gl of our view window size */
477 glViewport(0, 0, (GLint)width, (GLint)height);
479 fgUpdateViewParams();
481 glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
485 /**************************************************************************
487 **************************************************************************/
489 int main( int argc, char *argv[] ) {
490 struct flight_params *f;
493 f = ¤t_aircraft.flight;
495 printf("Flight Gear: prototype code to test OpenGL, LaRCsim, and VRML\n\n");
498 /**********************************************************************
499 * Initialize the Window/Graphics environment.
500 **********************************************************************/
503 /* initialize GLUT */
504 glutInit(&argc, argv);
506 /* Define Display Parameters */
507 glutInitDisplayMode( GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE );
509 /* Define initial window size */
510 glutInitWindowSize(640, 480);
512 /* Initialize windows */
513 glutCreateWindow("Flight Gear");
516 /* seed the random number generater */
519 /* setup view parameters, only makes GL calls */
523 /****************************************************************
524 * The following section sets up the flight model EOM parameters and
525 * should really be read in from one or more files.
526 ****************************************************************/
528 /* Globe Aiport, AZ */
529 FG_Runway_altitude = 3234.5;
530 FG_Runway_latitude = 120070.41;
531 FG_Runway_longitude = -398391.28;
532 FG_Runway_heading = 102.0 * DEG_TO_RAD;
534 /* Initial Position */
535 FG_Latitude = ( 120070.41 / 3600.0 ) * DEG_TO_RAD;
536 FG_Longitude = ( -398391.28 / 3600.0 ) * DEG_TO_RAD;
537 FG_Altitude = FG_Runway_altitude + 3.758099;
539 /* FG_Latitude = 0.0; */
540 /* FG_Longitude = 0.0; */
541 /* FG_Altitude = 15000.0; */
543 printf("Initial position is: (%.4f, %.4f, %.2f)\n", FG_Latitude,
544 FG_Longitude, FG_Altitude);
546 /* Initial Velocity */
547 FG_V_north = 0.0 /* 7.287719E+00 */;
548 FG_V_east = 0.0 /* 1.521770E+03 */;
549 FG_V_down = 0.0 /* -1.265722E-05 */;
551 /* Initial Orientation */
552 FG_Phi = -2.658474E-06;
553 FG_Theta = 7.401790E-03;
554 /* FG_Psi = 270.0 * DEG_TO_RAD; */
555 FG_Psi = 0.0 * DEG_TO_RAD;
557 /* Initial Angular B rates */
558 FG_P_body = 7.206685E-05;
559 FG_Q_body = 0.000000E+00;
560 FG_R_body = 9.492658E-05;
562 FG_Earth_position_angle = 0.000000E+00;
564 /* Mass properties and geometry values */
565 FG_Mass = 8.547270E+01;
566 FG_I_xx = 1.048000E+03;
567 FG_I_yy = 3.000000E+03;
568 FG_I_zz = 3.530000E+03;
569 FG_I_xz = 0.000000E+00;
571 /* CG position w.r.t. ref. point */
572 FG_Dx_cg = 0.000000E+00;
573 FG_Dy_cg = 0.000000E+00;
574 FG_Dz_cg = 0.000000E+00;
576 /* Set initial position and slew parameters */
577 /* fgSlewInit(-398391.3, 120070.41, 244, 3.1415); */ /* GLOBE Airport */
578 /* fgSlewInit(-335340,162540, 15, 4.38); */
579 /* fgSlewInit(-398673.28,120625.64, 53, 4.38); */
581 /* Initialize the Scenery Management system */
584 /* Tell the Scenery Management system where we are so it can load
585 * the correct scenery data */
586 fgSceneryUpdate(FG_Latitude, FG_Longitude, FG_Altitude);
588 /* I'm just sticking this here for now, it should probably move
590 rough_elev = mesh_altitude(FG_Longitude * RAD_TO_DEG * 3600.0,
591 FG_Latitude * RAD_TO_DEG * 3600.0);
592 printf("Ground elevation is %.2f meters here.\n", rough_elev);
593 if ( rough_elev > -9990.0 ) {
594 FG_Runway_altitude = rough_elev * METER_TO_FEET;
597 if ( FG_Altitude < FG_Runway_altitude ) {
598 FG_Altitude = FG_Runway_altitude + 3.758099;
600 /* end of thing that I just stuck in that I should probably move */
602 /* Initialize the flight model data structures base on above values */
603 fgFlightModelInit( FG_LARCSIM, f, 1.0 / DEFAULT_MODEL_HZ );
606 /* init timer routines, signals, etc. Arrange for an alarm
607 signal to be generated, etc. */
608 fgInitTimeDepCalcs();
611 /* Initialize the weather modeling subsystem */
614 /**********************************************************************
615 * Initialize the Event Handlers.
616 **********************************************************************/
619 /* call fgReshape() on window resizes */
620 glutReshapeFunc( fgReshape );
622 /* call key() on keyboard event */
623 glutKeyboardFunc( GLUTkey );
624 glutSpecialFunc( GLUTspecialkey );
626 /* call fgMainLoop() whenever there is nothing else to do */
627 glutIdleFunc( fgMainLoop );
630 glutDisplayFunc( fgUpdateVisuals );
632 /* pass control off to the GLUT event handler */
642 int printf (const char *format, ...) {
648 /* Revision 1.5 1997/08/06 21:08:32 curt
649 /* Sun position now *really* works (I think) ... I still have sun time warping
650 /* code in place, probably should remove it soon.
652 * Revision 1.4 1997/08/06 15:41:26 curt
653 * Working on correct sun position.
655 * Revision 1.3 1997/08/06 00:24:22 curt
656 * Working on correct real time sun lighting.
658 * Revision 1.2 1997/08/04 20:25:15 curt
659 * Organizational tweaking.
661 * Revision 1.1 1997/08/02 18:45:00 curt
662 * Renamed GLmain.c GLUTmain.c
664 * Revision 1.43 1997/08/02 16:23:47 curt
667 * Revision 1.42 1997/08/01 19:43:33 curt
668 * Making progress with coordinate system overhaul.
670 * Revision 1.41 1997/07/31 22:52:37 curt
671 * Working on redoing internal coordinate systems & scenery transformations.
673 * Revision 1.40 1997/07/30 16:12:42 curt
674 * Moved fg_random routines from Util/ to Math/
676 * Revision 1.39 1997/07/21 14:45:01 curt
679 * Revision 1.38 1997/07/19 23:04:47 curt
680 * Added an initial weather section.
682 * Revision 1.37 1997/07/19 22:34:02 curt
683 * Moved PI definitions to ../constants.h
684 * Moved random() stuff to ../Utils/ and renamed fg_random()
686 * Revision 1.36 1997/07/18 23:41:25 curt
687 * Tweaks for building with Cygnus Win32 compiler.
689 * Revision 1.35 1997/07/18 14:28:34 curt
690 * Hacked in some support for wind/turbulence.
692 * Revision 1.34 1997/07/16 20:04:48 curt
693 * Minor tweaks to aid Win32 port.
695 * Revision 1.33 1997/07/12 03:50:20 curt
696 * Added an #include <Windows32/Base.h> to help compiling for Win32
698 * Revision 1.32 1997/07/11 03:23:18 curt
699 * Solved some scenery display/orientation problems. Still have a positioning
700 * (or transformation?) problem.
702 * Revision 1.31 1997/07/11 01:29:58 curt
703 * More tweaking of terrian floor.
705 * Revision 1.30 1997/07/10 04:26:37 curt
706 * We now can interpolated ground elevation for any position in the grid. We
707 * can use this to enforce a "hard" ground. We still need to enforce some
708 * bounds checking so that we don't try to lookup data points outside the
711 * Revision 1.29 1997/07/09 21:31:12 curt
712 * Working on making the ground "hard."
714 * Revision 1.28 1997/07/08 18:20:12 curt
715 * Working on establishing a hard ground.
717 * Revision 1.27 1997/07/07 20:59:49 curt
718 * Working on scenery transformations to enable us to fly fluidly over the
719 * poles with no discontinuity/distortion in scenery.
721 * Revision 1.26 1997/07/05 20:43:34 curt
722 * renamed mat3 directory to Math so we could add other math related routines.
724 * Revision 1.25 1997/06/29 21:19:17 curt
725 * Working on scenery management system.
727 * Revision 1.24 1997/06/26 22:14:53 curt
728 * Beginning work on a scenery management system.
730 * Revision 1.23 1997/06/26 19:08:33 curt
731 * Restructuring make, adding automatic "make dep" support.
733 * Revision 1.22 1997/06/25 15:39:47 curt
734 * Minor changes to compile with rsxnt/win32.
736 * Revision 1.21 1997/06/22 21:44:41 curt
737 * Working on intergrating the VRML (subset) parser.
739 * Revision 1.20 1997/06/21 17:12:53 curt
740 * Capitalized subdirectory names.
742 * Revision 1.19 1997/06/18 04:10:31 curt
743 * A couple more runway tweaks ...
745 * Revision 1.18 1997/06/18 02:21:24 curt
748 * Revision 1.17 1997/06/17 16:51:58 curt
749 * Timer interval stuff now uses gettimeofday() instead of ftime()
751 * Revision 1.16 1997/06/17 04:19:16 curt
752 * More timer related tweaks with respect to view direction changes.
754 * Revision 1.15 1997/06/17 03:41:10 curt
755 * Nonsignal based interval timing is now working.
756 * This would be a good time to look at cleaning up the code structure a bit.
758 * Revision 1.14 1997/06/16 19:32:51 curt
759 * Starting to add general timer support.
761 * Revision 1.13 1997/06/02 03:40:06 curt
762 * A tiny bit more view tweaking.
764 * Revision 1.12 1997/06/02 03:01:38 curt
765 * Working on views (side, front, back, transitions, etc.)
767 * Revision 1.11 1997/05/31 19:16:25 curt
768 * Elevator trim added.
770 * Revision 1.10 1997/05/31 04:13:52 curt
773 * Continuing work on the LaRCsim flight model integration.
774 * Added some MSFS-like keyboard input handling.
776 * Revision 1.9 1997/05/30 19:27:01 curt
777 * The LaRCsim flight model is starting to look like it is working.
779 * Revision 1.8 1997/05/30 03:54:10 curt
780 * Made a bit more progress towards integrating the LaRCsim flight model.
782 * Revision 1.7 1997/05/29 22:39:49 curt
783 * Working on incorporating the LaRCsim flight model.
785 * Revision 1.6 1997/05/29 12:31:39 curt
786 * Minor tweaks, moving towards general flight model integration.
788 * Revision 1.5 1997/05/29 02:33:23 curt
789 * Updated to reflect changing interfaces in other "modules."
791 * Revision 1.4 1997/05/27 17:44:31 curt
792 * Renamed & rearranged variables and routines. Added some initial simple
793 * timer/alarm routines so the flight model can be updated on a regular
796 * Revision 1.3 1997/05/23 15:40:25 curt
797 * Added GNU copyright headers.
800 * Revision 1.2 1997/05/23 00:35:12 curt
801 * Trying to get fog to work ...
803 * Revision 1.1 1997/05/21 15:57:51 curt
804 * Renamed due to added GLUT support.
806 * Revision 1.3 1997/05/19 18:22:42 curt
807 * Parameter tweaking ... starting to stub in fog support.
809 * Revision 1.2 1997/05/17 00:17:34 curt
810 * Trying to stub in support for standard OpenGL.
812 * Revision 1.1 1997/05/16 16:05:52 curt