1 /**************************************************************************
2 * GLUTmain.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 **************************************************************************/
40 #include "../constants.h"
41 #include "../general.h"
43 #include "../Aircraft/aircraft.h"
44 #include "../Cockpit/cockpit.h"
45 #include "../Joystick/joystick.h"
46 #include "../Math/fg_geodesy.h"
47 #include "../Math/mat3.h"
48 #include "../Math/polar.h"
49 #include "../Scenery/mesh.h"
50 #include "../Scenery/scenery.h"
51 #include "../Time/fg_time.h"
52 #include "../Time/fg_timer.h"
53 #include "../Time/sunpos.h"
54 #include "../Weather/weather.h"
57 /* This is a record containing all the info for the aircraft currently
59 struct AIRCRAFT current_aircraft;
61 /* This is a record containing global housekeeping information */
62 struct GENERAL general;
64 /* This is a record containing current weather info */
65 struct WEATHER current_weather;
68 static GLfloat win_ratio = 1.0;
71 static GLfloat sun_vec[4] = {1.0, 0.0, 0.0, 0.0 };
73 /* if the 4th field is 0.0, this specifies a direction ... */
74 /* clear color (sky) */
75 static GLfloat fgClearColor[4] = {0.60, 0.60, 0.90, 1.0};
77 static GLfloat fgFogColor[4] = {0.65, 0.65, 0.85, 1.0};
80 /* extern struct mesh *mesh_ptr; */
81 /* Function prototypes */
82 /* GLint fgSceneryCompile_OLD(); */
83 /* static void fgSceneryDraw_OLD(); */
85 /* pointer to scenery structure */
86 /* static GLint scenery, runway; */
89 double view_offset = 0.0;
90 double goal_view_offset = 0.0;
97 /* Yet another hack. This one used by the HUD code. Michele */
101 /**************************************************************************
102 * fgInitVisuals() -- Initialize various GL/view parameters
103 **************************************************************************/
105 static void fgInitVisuals() {
108 w = ¤t_weather;
110 glEnable( GL_DEPTH_TEST );
111 /* glFrontFace(GL_CW); */
112 glEnable( GL_CULL_FACE );
114 /* If enabled, normal vectors specified with glNormal are scaled
115 to unit length after transformation. See glNormal. */
116 glEnable( GL_NORMALIZE );
118 glLightfv( GL_LIGHT0, GL_POSITION, sun_vec );
119 glEnable( GL_LIGHTING );
120 glEnable( GL_LIGHT0 );
122 glShadeModel( GL_FLAT ); /* glShadeModel( GL_SMOOTH ); */
125 glFogi (GL_FOG_MODE, GL_LINEAR);
126 /* glFogf (GL_FOG_START, 1.0); */
127 glFogf (GL_FOG_END, w->visibility);
128 glFogfv (GL_FOG_COLOR, fgFogColor);
129 /* glFogf (GL_FOG_DENSITY, w->visibility); */
130 /* glHint (GL_FOG_HINT, GL_FASTEST); */
132 glClearColor(fgClearColor[0], fgClearColor[1], fgClearColor[2],
137 /**************************************************************************
138 * Update the view volume, position, and orientation
139 **************************************************************************/
141 static void fgUpdateViewParams() {
142 struct fgCartesianPoint view_pos /*, alt_up */;
145 MAT3mat R, TMP, UP, LOCAL, VIEW;
146 MAT3vec vec, view_up, forward, view_forward, local_up, nup, nsun;
147 double sun_angle, temp, ambient, diffuse, sky;
148 GLfloat color[4] = { 1.0, 1.0, 0.50, 1.0 };
149 GLfloat amb[3], diff[3], fog[4], clear[4];
151 f = ¤t_aircraft.flight;
152 t = &cur_time_params;
154 /* Tell GL we are about to modify the projection parameters */
155 glMatrixMode(GL_PROJECTION);
157 gluPerspective(45.0, 1.0/win_ratio, 1.0, 200000.0);
159 glMatrixMode(GL_MODELVIEW);
162 /* calculate view position in current FG view coordinate system */
163 view_pos = fgPolarToCart(FG_Longitude, FG_Lat_geocentric,
164 FG_Radius_to_vehicle * FEET_TO_METER + 1.0);
165 view_pos.x -= scenery.center.x;
166 view_pos.y -= scenery.center.y;
167 view_pos.z -= scenery.center.z;
169 printf("View pos = %.4f, %.4f, %.4f\n", view_pos.x, view_pos.y, view_pos.z);
171 /* Derive the LOCAL aircraft rotation matrix (roll, pitch, yaw) */
172 MAT3_SET_VEC(vec, 0.0, 0.0, 1.0);
173 MAT3rotate(R, vec, FG_Phi);
174 /* printf("Roll matrix\n"); */
175 /* MAT3print(R, stdout); */
177 MAT3_SET_VEC(vec, 0.0, 1.0, 0.0);
178 /* MAT3mult_vec(vec, vec, R); */
179 MAT3rotate(TMP, vec, FG_Theta);
180 /* printf("Pitch matrix\n"); */
181 /* MAT3print(TMP, stdout); */
184 MAT3_SET_VEC(vec, 1.0, 0.0, 0.0);
185 /* MAT3mult_vec(vec, vec, R); */
186 /* MAT3rotate(TMP, vec, FG_Psi - FG_PI_2); */
187 MAT3rotate(TMP, vec, -FG_Psi);
188 /* printf("Yaw matrix\n");
189 MAT3print(TMP, stdout); */
190 MAT3mult(LOCAL, R, TMP);
191 /* printf("LOCAL matrix\n"); */
192 /* MAT3print(LOCAL, stdout); */
194 /* Derive the local UP transformation matrix based on *geodetic*
196 MAT3_SET_VEC(vec, 0.0, 0.0, 1.0);
197 MAT3rotate(R, vec, FG_Longitude); /* R = rotate about Z axis */
198 /* printf("Longitude matrix\n"); */
199 /* MAT3print(R, stdout); */
201 MAT3_SET_VEC(vec, 0.0, 1.0, 0.0);
202 MAT3mult_vec(vec, vec, R);
203 MAT3rotate(TMP, vec, -FG_Latitude); /* TMP = rotate about X axis */
204 /* printf("Latitude matrix\n"); */
205 /* MAT3print(TMP, stdout); */
207 MAT3mult(UP, R, TMP);
208 /* printf("Local up matrix\n"); */
209 /* MAT3print(UP, stdout); */
211 MAT3_SET_VEC(local_up, 1.0, 0.0, 0.0);
212 MAT3mult_vec(local_up, local_up, UP);
214 printf(" Local Up = (%.4f, %.4f, %.4f)\n", local_up[0], local_up[1],
217 /* Alternative method to Derive local up vector based on
218 * *geodetic* coordinates */
219 /* alt_up = fgPolarToCart(FG_Longitude, FG_Latitude, 1.0); */
220 /* printf(" Alt Up = (%.4f, %.4f, %.4f)\n",
221 alt_up.x, alt_up.y, alt_up.z); */
223 /* Derive the VIEW matrix */
224 MAT3mult(VIEW, LOCAL, UP);
225 /* printf("VIEW matrix\n"); */
226 /* MAT3print(VIEW, stdout); */
228 /* generate the current up, forward, and fwrd-view vectors */
229 MAT3_SET_VEC(vec, 1.0, 0.0, 0.0);
230 MAT3mult_vec(view_up, vec, VIEW);
232 MAT3_SET_VEC(vec, 0.0, 0.0, 1.0);
233 MAT3mult_vec(forward, vec, VIEW);
234 printf("Forward vector is (%.2f,%.2f,%.2f)\n", forward[0], forward[1],
237 MAT3rotate(TMP, view_up, view_offset);
238 MAT3mult_vec(view_forward, forward, TMP);
240 /* set up our view volume */
241 gluLookAt(view_pos.x, view_pos.y, view_pos.z,
242 view_pos.x + view_forward[0], view_pos.y + view_forward[1],
243 view_pos.z + view_forward[2],
244 view_up[0], view_up[1], view_up[2]);
246 /* set the sun position */
247 glLightfv( GL_LIGHT0, GL_POSITION, sun_vec );
249 /* calculate lighting parameters based on sun's relative angle to
251 MAT3_COPY_VEC(nup, local_up);
252 nsun[0] = t->fg_sunpos.x;
253 nsun[1] = t->fg_sunpos.y;
254 nsun[2] = t->fg_sunpos.z;
255 MAT3_NORMALIZE_VEC(nup, temp);
256 MAT3_NORMALIZE_VEC(nsun, temp);
258 sun_angle = acos(MAT3_DOT_PRODUCT(nup, nsun));
259 printf("SUN ANGLE relative to current location = %.3f rads.\n", sun_angle);
261 /* ya kind'a have to plot this to see the magic */
262 ambient = 0.4 * pow(2.4, -sun_angle*sun_angle*sun_angle*sun_angle/3.0);
263 diffuse = 0.4 * cos(0.6*sun_angle*sun_angle);
264 sky = 0.85 * pow(1.6, -sun_angle*sun_angle*sun_angle*sun_angle/2.0) + 0.15;
266 if ( ambient < 0.1 ) { ambient = 0.1; }
267 if ( diffuse < 0.0 ) { diffuse = 0.0; }
269 if ( sky < 0.0 ) { sky = 0.0; }
271 amb[0] = color[0] * ambient;
272 amb[1] = color[1] * ambient;
273 amb[2] = color[2] * ambient;
275 diff[0] = color[0] * diffuse;
276 diff[1] = color[1] * diffuse;
277 diff[2] = color[2] * diffuse;
279 /* set lighting parameters */
280 glLightfv(GL_LIGHT0, GL_AMBIENT, amb );
281 glLightfv(GL_LIGHT0, GL_DIFFUSE, diff );
284 fog[0] = fgFogColor[0] * (ambient + diffuse);
285 fog[1] = fgFogColor[1] * (ambient + diffuse);
286 fog[2] = fgFogColor[2] * (ambient + diffuse);
287 fog[3] = fgFogColor[3];
288 glFogfv (GL_FOG_COLOR, fog);
291 clear[0] = fgClearColor[0] * sky;
292 clear[1] = fgClearColor[1] * sky;
293 clear[2] = fgClearColor[2] * sky;
294 clear[3] = fgClearColor[3];
295 glClearColor(clear[0], clear[1], clear[2], clear[3]);
299 /**************************************************************************
300 * Update all Visuals (redraws anything graphics related)
301 **************************************************************************/
303 static void fgUpdateVisuals( void ) {
304 /* update view volume parameters */
305 fgUpdateViewParams();
307 glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
309 /* Tell GL we are switching to model view parameters */
310 glMatrixMode(GL_MODELVIEW);
311 /* glLoadIdentity(); */
328 /**************************************************************************
329 * Update internal time dependent calculations (i.e. flight model)
330 **************************************************************************/
332 void fgUpdateTimeDepCalcs(int multi_loop) {
337 f = ¤t_aircraft.flight;
338 t = &cur_time_params;
340 /* update the flight model */
341 if ( multi_loop < 0 ) {
342 multi_loop = DEFAULT_MULTILOOP;
345 /* printf("updating flight model x %d\n", multi_loop); */
346 fgFlightModelUpdate(FG_LARCSIM, f, multi_loop);
348 /* refresh shared sun position and sun_vec */
351 /* the sun position has to be translated just like everything else */
352 sun_vec[0] = t->fg_sunpos.x - scenery.center.x;
353 sun_vec[1] = t->fg_sunpos.y - scenery.center.y;
354 sun_vec[2] = t->fg_sunpos.z - scenery.center.z;
355 /* make this a directional light source only */
358 /* update the view angle */
359 for ( i = 0; i < multi_loop; i++ ) {
360 if ( fabs(goal_view_offset - view_offset) < 0.05 ) {
361 view_offset = goal_view_offset;
364 /* move view_offset towards goal_view_offset */
365 if ( goal_view_offset > view_offset ) {
366 if ( goal_view_offset - view_offset < FG_PI ) {
372 if ( view_offset - goal_view_offset < FG_PI ) {
378 if ( view_offset > FG_2PI ) {
379 view_offset -= FG_2PI;
380 } else if ( view_offset < 0 ) {
381 view_offset += FG_2PI;
388 void fgInitTimeDepCalcs() {
389 /* initialize timer */
392 fgTimerInit( 1.0 / DEFAULT_TIMER_HZ, fgUpdateTimeDepCalcs );
398 /**************************************************************************
399 * Scenery management routines
400 **************************************************************************/
402 /* static void fgSceneryInit_OLD() { */
404 /* scenery = fgSceneryCompile_OLD();
405 runway = fgRunwayHack_OLD(0.69, 53.07);
409 /* create the scenery */
410 /* GLint fgSceneryCompile_OLD() {
413 scenery = mesh2GL(mesh_ptr_OLD);
419 /* hack in a runway */
420 /* GLint fgRunwayHack_OLD(double width, double length) {
421 static GLfloat concrete[4] = { 0.5, 0.5, 0.5, 1.0 };
422 static GLfloat line[4] = { 0.9, 0.9, 0.9, 1.0 };
425 float line_len, line_width_2, cur_pos;
427 runway = glGenLists(1);
428 glNewList(runway, GL_COMPILE);
431 /* glBegin(GL_POLYGON);
432 glMaterialfv( GL_FRONT, GL_AMBIENT_AND_DIFFUSE, concrete );
433 glNormal3f(0.0, 0.0, 1.0);
435 glVertex3d( 0.0, -width/2.0, 0.0);
436 glVertex3d( 0.0, width/2.0, 0.0);
437 glVertex3d(length, width/2.0, 0.0);
438 glVertex3d(length, -width/2.0, 0.0);
441 /* draw center line */
442 /* glMaterialfv( GL_FRONT, GL_AMBIENT_AND_DIFFUSE, line );
443 line_len = length / ( 2 * num_lines + 1);
444 printf("line_len = %.3f\n", line_len);
447 for ( i = 0; i < num_lines; i++ ) {
449 glVertex3d( cur_pos, -line_width_2, 0.005);
450 glVertex3d( cur_pos, line_width_2, 0.005);
452 glVertex3d( cur_pos, line_width_2, 0.005);
453 glVertex3d( cur_pos, -line_width_2, 0.005);
464 /* draw the scenery */
465 /*static void fgSceneryDraw_OLD() {
466 static float z = 32.35;
472 printf("*** Drawing runway at %.2f\n", z);
474 glTranslatef( -398391.28, 120070.41, 32.35);
475 glRotatef(170.0, 0.0, 0.0, 1.0);
482 /* What should we do when we have nothing else to do? How about get
483 * ready for the next move and update the display? */
484 static void fgMainLoop( void ) {
485 static int remainder = 0;
486 int elapsed, multi_loop;
492 f = ¤t_aircraft.flight;
495 /* fgJoystickRead( &joy_x, &joy_y, &joy_b1, &joy_b2 ); */
496 /* printf( "Joystick X %f Y %f B1 %d B2 %d\n",
497 joy_x, joy_y, joy_b1, joy_b2 );
499 fgAileronSet( joy_x ); */
501 /* update the weather for our current position */
502 fgWeatherUpdate(FG_Longitude * RAD_TO_ARCSEC,
503 FG_Latitude * RAD_TO_ARCSEC,
504 FG_Altitude * FEET_TO_METER);
506 /* Calculate model iterations needed */
507 elapsed = fgGetTimeInterval();
508 printf("Time interval is = %d, previous remainder is = %d\n", elapsed,
510 printf("--> Frame rate is = %.2f\n", 1000.0 / (float)elapsed);
511 elapsed += remainder;
513 multi_loop = ((float)elapsed * 0.001) * DEFAULT_MODEL_HZ;
514 remainder = elapsed - ((multi_loop*1000) / DEFAULT_MODEL_HZ);
515 printf("Model iterations needed = %d, new remainder = %d\n", multi_loop,
518 if ( ! use_signals ) {
520 fgUpdateTimeDepCalcs(multi_loop);
523 /* I'm just sticking this here for now, it should probably move
525 cur_elev = mesh_altitude(FG_Longitude * RAD_TO_ARCSEC,
526 FG_Latitude * RAD_TO_ARCSEC);
527 printf("Ground elevation is %.2f meters here.\n", cur_elev);
528 /* FG_Runway_altitude = cur_elev * METER_TO_FEET; */
530 if ( FG_Altitude * FEET_TO_METER < cur_elev + 3.758099) {
531 /* set this here, otherwise if we set runway height above our
532 current height we get a really nasty bounce. */
533 FG_Runway_altitude = FG_Altitude - 3.758099;
535 /* now set aircraft altitude above ground */
536 FG_Altitude = cur_elev * METER_TO_FEET + 3.758099;
537 printf("<*> resetting altitude to %.0f meters\n",
538 FG_Altitude * FEET_TO_METER);
548 /**************************************************************************
549 * Handle new window size or exposure
550 **************************************************************************/
552 static void fgReshape( int width, int height ) {
553 /* Do this so we can call fgReshape(0,0) ourselves without having to know
554 * what the values of width & height are. */
555 if ( (height > 0) && (width > 0) ) {
556 win_ratio = (GLfloat) height / (GLfloat) width;
559 /* Inform gl of our view window size */
560 glViewport(0, 0, (GLint)width, (GLint)height);
562 fgUpdateViewParams();
564 glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
568 /**************************************************************************
570 **************************************************************************/
572 int main( int argc, char *argv[] ) {
575 f = ¤t_aircraft.flight;
577 printf("Flight Gear: prototype version %s\n\n", VERSION);
579 /**********************************************************************
580 * Initialize the Window/Graphics environment.
581 **********************************************************************/
584 /* initialize GLUT */
585 glutInit(&argc, argv);
587 /* Define Display Parameters */
588 glutInitDisplayMode( GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE );
590 /* Define initial window size */
591 glutInitWindowSize(640, 480);
593 /* Initialize windows */
594 glutCreateWindow("Flight Gear");
597 /* This is the general house keeping init routine */
600 /* This is the top level init routine which calls all the other
601 * subsystem initialization routines. If you are adding a
602 * subsystem to flight gear, its initialization call should
603 * located in this routine.*/
606 /* setup view parameters, only makes GL calls */
610 /* init timer routines, signals, etc. Arrange for an alarm
611 signal to be generated, etc. */
612 fgInitTimeDepCalcs();
615 /**********************************************************************
616 * Initialize the Event Handlers.
617 **********************************************************************/
620 /* call fgReshape() on window resizes */
621 glutReshapeFunc( fgReshape );
623 /* call key() on keyboard event */
624 glutKeyboardFunc( GLUTkey );
625 glutSpecialFunc( GLUTspecialkey );
627 /* call fgMainLoop() whenever there is nothing else to do */
628 glutIdleFunc( fgMainLoop );
631 glutDisplayFunc( fgUpdateVisuals );
633 /* pass control off to the GLUT event handler */
643 int printf (const char *format, ...) {
649 /* Revision 1.11 1997/08/27 03:30:16 curt
650 /* Changed naming scheme of basic shared structures.
652 * Revision 1.10 1997/08/25 20:27:22 curt
653 * Merged in initial HUD and Joystick code.
655 * Revision 1.9 1997/08/22 21:34:39 curt
656 * Doing a bit of reorganizing and house cleaning.
658 * Revision 1.8 1997/08/19 23:55:03 curt
659 * Worked on better simulating real lighting.
661 * Revision 1.7 1997/08/16 12:22:38 curt
662 * Working on improving the lighting/shading.
664 * Revision 1.6 1997/08/13 20:24:56 curt
665 * Changes due to changing sunpos interface.
667 * Revision 1.5 1997/08/06 21:08:32 curt
668 * Sun position now *really* works (I think) ... I still have sun time warping
669 * code in place, probably should remove it soon.
671 * Revision 1.4 1997/08/06 15:41:26 curt
672 * Working on correct sun position.
674 * Revision 1.3 1997/08/06 00:24:22 curt
675 * Working on correct real time sun lighting.
677 * Revision 1.2 1997/08/04 20:25:15 curt
678 * Organizational tweaking.
680 * Revision 1.1 1997/08/02 18:45:00 curt
681 * Renamed GLmain.c GLUTmain.c
683 * Revision 1.43 1997/08/02 16:23:47 curt
686 * Revision 1.42 1997/08/01 19:43:33 curt
687 * Making progress with coordinate system overhaul.
689 * Revision 1.41 1997/07/31 22:52:37 curt
690 * Working on redoing internal coordinate systems & scenery transformations.
692 * Revision 1.40 1997/07/30 16:12:42 curt
693 * Moved fg_random routines from Util/ to Math/
695 * Revision 1.39 1997/07/21 14:45:01 curt
698 * Revision 1.38 1997/07/19 23:04:47 curt
699 * Added an initial weather section.
701 * Revision 1.37 1997/07/19 22:34:02 curt
702 * Moved PI definitions to ../constants.h
703 * Moved random() stuff to ../Utils/ and renamed fg_random()
705 * Revision 1.36 1997/07/18 23:41:25 curt
706 * Tweaks for building with Cygnus Win32 compiler.
708 * Revision 1.35 1997/07/18 14:28:34 curt
709 * Hacked in some support for wind/turbulence.
711 * Revision 1.34 1997/07/16 20:04:48 curt
712 * Minor tweaks to aid Win32 port.
714 * Revision 1.33 1997/07/12 03:50:20 curt
715 * Added an #include <Windows32/Base.h> to help compiling for Win32
717 * Revision 1.32 1997/07/11 03:23:18 curt
718 * Solved some scenery display/orientation problems. Still have a positioning
719 * (or transformation?) problem.
721 * Revision 1.31 1997/07/11 01:29:58 curt
722 * More tweaking of terrian floor.
724 * Revision 1.30 1997/07/10 04:26:37 curt
725 * We now can interpolated ground elevation for any position in the grid. We
726 * can use this to enforce a "hard" ground. We still need to enforce some
727 * bounds checking so that we don't try to lookup data points outside the
730 * Revision 1.29 1997/07/09 21:31:12 curt
731 * Working on making the ground "hard."
733 * Revision 1.28 1997/07/08 18:20:12 curt
734 * Working on establishing a hard ground.
736 * Revision 1.27 1997/07/07 20:59:49 curt
737 * Working on scenery transformations to enable us to fly fluidly over the
738 * poles with no discontinuity/distortion in scenery.
740 * Revision 1.26 1997/07/05 20:43:34 curt
741 * renamed mat3 directory to Math so we could add other math related routines.
743 * Revision 1.25 1997/06/29 21:19:17 curt
744 * Working on scenery management system.
746 * Revision 1.24 1997/06/26 22:14:53 curt
747 * Beginning work on a scenery management system.
749 * Revision 1.23 1997/06/26 19:08:33 curt
750 * Restructuring make, adding automatic "make dep" support.
752 * Revision 1.22 1997/06/25 15:39:47 curt
753 * Minor changes to compile with rsxnt/win32.
755 * Revision 1.21 1997/06/22 21:44:41 curt
756 * Working on intergrating the VRML (subset) parser.
758 * Revision 1.20 1997/06/21 17:12:53 curt
759 * Capitalized subdirectory names.
761 * Revision 1.19 1997/06/18 04:10:31 curt
762 * A couple more runway tweaks ...
764 * Revision 1.18 1997/06/18 02:21:24 curt
767 * Revision 1.17 1997/06/17 16:51:58 curt
768 * Timer interval stuff now uses gettimeofday() instead of ftime()
770 * Revision 1.16 1997/06/17 04:19:16 curt
771 * More timer related tweaks with respect to view direction changes.
773 * Revision 1.15 1997/06/17 03:41:10 curt
774 * Nonsignal based interval timing is now working.
775 * This would be a good time to look at cleaning up the code structure a bit.
777 * Revision 1.14 1997/06/16 19:32:51 curt
778 * Starting to add general timer support.
780 * Revision 1.13 1997/06/02 03:40:06 curt
781 * A tiny bit more view tweaking.
783 * Revision 1.12 1997/06/02 03:01:38 curt
784 * Working on views (side, front, back, transitions, etc.)
786 * Revision 1.11 1997/05/31 19:16:25 curt
787 * Elevator trim added.
789 * Revision 1.10 1997/05/31 04:13:52 curt
792 * Continuing work on the LaRCsim flight model integration.
793 * Added some MSFS-like keyboard input handling.
795 * Revision 1.9 1997/05/30 19:27:01 curt
796 * The LaRCsim flight model is starting to look like it is working.
798 * Revision 1.8 1997/05/30 03:54:10 curt
799 * Made a bit more progress towards integrating the LaRCsim flight model.
801 * Revision 1.7 1997/05/29 22:39:49 curt
802 * Working on incorporating the LaRCsim flight model.
804 * Revision 1.6 1997/05/29 12:31:39 curt
805 * Minor tweaks, moving towards general flight model integration.
807 * Revision 1.5 1997/05/29 02:33:23 curt
808 * Updated to reflect changing interfaces in other "modules."
810 * Revision 1.4 1997/05/27 17:44:31 curt
811 * Renamed & rearranged variables and routines. Added some initial simple
812 * timer/alarm routines so the flight model can be updated on a regular
815 * Revision 1.3 1997/05/23 15:40:25 curt
816 * Added GNU copyright headers.
819 * Revision 1.2 1997/05/23 00:35:12 curt
820 * Trying to get fog to work ...
822 * Revision 1.1 1997/05/21 15:57:51 curt
823 * Renamed due to added GLUT support.
825 * Revision 1.3 1997/05/19 18:22:42 curt
826 * Parameter tweaking ... starting to stub in fog support.
828 * Revision 1.2 1997/05/17 00:17:34 curt
829 * Trying to stub in support for standard OpenGL.
831 * Revision 1.1 1997/05/16 16:05:52 curt