]> git.mxchange.org Git - flightgear.git/blob - Main/GLUTkey.cxx
Check for __CYGWIN__ (b20) as well as __CYGWIN32__ (pre b20 compilers)
[flightgear.git] / Main / GLUTkey.cxx
1 // GLUTkey.cxx -- handle GLUT keyboard events
2 //
3 // Written by Curtis Olson, started May 1997.
4 //
5 // Copyright (C) 1997  Curtis L. Olson  - curt@me.umn.edu
6 //
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
11 //
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 // General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 //
21 // $Id$
22 // (Log is kept at end of this file)
23
24
25 #ifdef HAVE_CONFIG_H
26 #  include <config.h>
27 #endif
28
29 #ifdef HAVE_WINDOWS_H
30 #  include <windows.h>                     
31 #endif
32
33 #include <GL/glut.h>
34 #include <XGL/xgl.h>
35 #include <stdio.h>
36 #include <stdlib.h>
37
38 #include <Aircraft/aircraft.hxx>
39 #include <Astro/solarsystem.hxx>
40 #include <Astro/sky.hxx>
41 #include <Autopilot/autopilot.hxx>
42 #include <Cockpit/hud.hxx>
43 #include <Debug/fg_debug.h>
44 #include <GUI/gui.h>
45 #include <Include/fg_constants.h>
46 #include <Objects/material.hxx>
47 #include <PUI/pu.h>
48 #include <Time/light.hxx>
49 #include <Weather/weather.hxx>
50
51 #include "GLUTkey.hxx"
52 #include "options.hxx"
53 #include "views.hxx"
54
55 #if defined(FX) && defined(XMESA)
56 #  include <GL/xmesa.h>
57    static int fullscreen = 1;
58 #endif
59
60
61 // Force an update of the sky and lighting parameters
62 static void local_update_sky_and_lighting_params( void ) {
63     // fgSunInit();
64     SolarSystem::theSolarSystem->rebuild();
65     cur_light_params.Update();
66     fgSkyColorsInit();
67 }
68
69
70 // Handle keyboard events
71 void GLUTkey(unsigned char k, int x, int y) {
72     fgFLIGHT *f;
73     fgTIME *t;
74     fgVIEW *v;
75     struct fgWEATHER *w;
76     float fov, tmp;
77     static bool winding_ccw = true;
78
79     f = current_aircraft.flight;
80     t = &cur_time_params;
81     v = &current_view;
82     w = &current_weather;
83
84     fgPrintf( FG_INPUT, FG_DEBUG, "Key hit = %d", k);
85     puKeyboard(k, PU_DOWN );
86
87     if ( GLUT_ACTIVE_ALT && glutGetModifiers() ) {
88         fgPrintf( FG_INPUT, FG_DEBUG, " SHIFTED\n");
89         switch (k) {
90         case 1: // Ctrl-A key
91             fgAPToggleAltitude();
92             return;
93         case 8: // Ctrl-H key
94             fgAPToggleHeading();
95             return;
96         case 18: // Ctrl-R key
97             // temporary
98             winding_ccw = !winding_ccw;
99             if ( winding_ccw ) {
100                 glFrontFace ( GL_CCW );
101             } else {
102                 glFrontFace ( GL_CW );
103             }
104             return;
105         case 19: // Ctrl-S key
106             fgAPToggleAutoThrottle();
107             return;
108         case 20: // Ctrl-T key
109             fgAPToggleTerrainFollow();
110             return;
111         case 49: // numeric keypad 1
112             v->goal_view_offset = FG_PI * 0.75;
113             return;
114         case 50: // numeric keypad 2
115             v->goal_view_offset = FG_PI;
116             return;
117         case 51: // numeric keypad 3
118             v->goal_view_offset = FG_PI * 1.25;
119             return;
120         case 52: // numeric keypad 4
121             v->goal_view_offset = FG_PI * 0.50;
122             return;
123         case 54: // numeric keypad 6
124             v->goal_view_offset = FG_PI * 1.50;
125             return;
126         case 55: // numeric keypad 7
127             v->goal_view_offset = FG_PI * 0.25;
128             return;
129         case 56: // numeric keypad 8
130             v->goal_view_offset = 0.00;
131             return;
132         case 57: // numeric keypad 9
133             v->goal_view_offset = FG_PI * 1.75;
134             return;
135         case 72: // H key
136             // status = current_options.get_hud_status();
137             // current_options.set_hud_status(!status);
138             HUD_brightkey( true );
139             return;
140         case 73: // i key
141             // Minimal Hud
142             fgHUDInit2(&current_aircraft);
143             return;
144         case 77: // M key
145             t->warp -= 60;
146             local_update_sky_and_lighting_params();
147             return;
148         case 84: // T key
149             t->warp_delta -= 30;
150             local_update_sky_and_lighting_params();
151             return;
152         case 87: // W key
153 #if defined(FX) && !defined(WIN32)
154             fullscreen = ( !fullscreen );
155 #if defined(XMESA_FX_FULLSCREEN) && defined(XMESA_FX_WINDOW)
156             XMesaSetFXmode(fullscreen ? XMESA_FX_FULLSCREEN : XMESA_FX_WINDOW);
157 #endif
158 #endif
159             return;
160         case 88: // X key
161             fov = current_options.get_fov();
162             fov *= 1.05;
163             if ( fov > FG_FOV_MAX ) {
164                 fov = FG_FOV_MAX;
165             }
166             current_options.set_fov(fov);
167             v->update_fov = TRUE;
168             return;
169         case 90: // Z key
170             tmp = fgWeatherGetVisibility();   // in meters
171             tmp /= 1.10;
172             fgWeatherSetVisibility( tmp );
173             return;
174         }
175     } else {
176         fgPrintf( FG_INPUT, FG_DEBUG, "\n");
177         switch (k) {
178         case 50: // numeric keypad 2
179             controls.move_elevator(-0.05);
180             return;
181         case 56: // numeric keypad 8
182             controls.move_elevator(0.05);
183             return;
184         case 49: // numeric keypad 1
185             controls.move_elevator_trim(-0.001);
186             return;
187         case 55: // numeric keypad 7
188             controls.move_elevator_trim(0.001);
189             return;
190         case 52: // numeric keypad 4
191             controls.move_aileron(-0.05);
192             return;
193         case 54: // numeric keypad 6
194             controls.move_aileron(0.05);
195             return;
196         case 48: // numeric keypad Ins
197             controls.move_rudder(-0.05);
198             return;
199         case 13: // numeric keypad Enter
200             controls.move_rudder(0.05);
201             return;
202         case 53: // numeric keypad 5
203             controls.set_aileron(0.0);
204             controls.set_elevator(0.0);
205             controls.set_rudder(0.0);
206             return;
207         case 57: // numeric keypad 9 (Pg Up)
208             controls.move_throttle( fgCONTROLS::FG_ALL_ENGINES, 0.01 );
209             return;
210         case 51: // numeric keypad 3 (Pg Dn)
211             controls.move_throttle( fgCONTROLS::FG_ALL_ENGINES, -0.01 );
212             return;
213         case 98: // b key
214             int b_ret;
215             double b_set;
216             b_ret = int( controls.get_brake( 0 ) );
217             b_set = double(!b_ret);
218             controls.set_brake( fgCONTROLS::FG_ALL_WHEELS, b_set);
219             return;
220         case 104: // h key
221             HUD_brightkey( false );
222             return;
223         case 105: // i key
224             fgHUDInit(&current_aircraft);  // normal HUD
225             return;
226         case 109: // m key
227             t->warp += 60;
228             local_update_sky_and_lighting_params();
229             return;
230         case 112: // p key
231             t->pause = !t->pause;
232             // printf position and attitude information
233             fgPrintf( FG_INPUT, FG_INFO,
234                       "Lon = %.4f  Lat = %.4f  Altitude = %.1f\n", 
235                       FG_Longitude * RAD_TO_DEG,
236                       FG_Latitude * RAD_TO_DEG,
237                       FG_Altitude * FEET_TO_METER);
238             fgPrintf( FG_INPUT, FG_INFO,
239                       "Heading = %.2f  Roll = %.2f  Pitch = %.2f\n", 
240                       FG_Psi * RAD_TO_DEG,
241                       FG_Phi * RAD_TO_DEG,
242                       FG_Theta * RAD_TO_DEG);
243             return;
244         case 116: // t key
245             t->warp_delta += 30;
246             local_update_sky_and_lighting_params();
247             return;
248         case 120: // X key
249             fov = current_options.get_fov();
250             fov /= 1.05;
251             if ( fov < FG_FOV_MIN ) {
252                 fov = FG_FOV_MIN;
253             }
254             current_options.set_fov(fov);
255             v->update_fov = TRUE;
256             return;
257         case 122: // z key
258             tmp = fgWeatherGetVisibility();   // in meters
259             tmp *= 1.10;
260             fgWeatherSetVisibility( tmp );
261             return;
262         case 27: // ESC
263             // if( fg_DebugOutput ) {
264             //   fclose( fg_DebugOutput );
265             // }
266             fgPrintf( FG_INPUT, FG_EXIT, 
267                       "Program exiting normally at user request.\n");
268         }
269     }
270 }
271
272
273 // Handle "special" keyboard events
274 void GLUTspecialkey(int k, int x, int y) {
275     fgVIEW *v;
276
277     v = &current_view;
278
279     fgPrintf( FG_INPUT, FG_DEBUG, "Special key hit = %d", k);
280     puKeyboard(k + PU_KEY_GLUT_SPECIAL_OFFSET, PU_DOWN);
281
282     if ( GLUT_ACTIVE_SHIFT && glutGetModifiers() ) {
283         fgPrintf( FG_INPUT, FG_DEBUG, " SHIFTED\n");
284         switch (k) {
285         case GLUT_KEY_END: // numeric keypad 1
286             v->goal_view_offset = FG_PI * 0.75;
287             return;
288         case GLUT_KEY_DOWN: // numeric keypad 2
289             v->goal_view_offset = FG_PI;
290             return;
291         case GLUT_KEY_PAGE_DOWN: // numeric keypad 3
292             v->goal_view_offset = FG_PI * 1.25;
293             return;
294         case GLUT_KEY_LEFT: // numeric keypad 4
295             v->goal_view_offset = FG_PI * 0.50;
296             return;
297         case GLUT_KEY_RIGHT: // numeric keypad 6
298             v->goal_view_offset = FG_PI * 1.50;
299             return;
300         case GLUT_KEY_HOME: // numeric keypad 7
301             v->goal_view_offset = FG_PI * 0.25;
302             return;
303         case GLUT_KEY_UP: // numeric keypad 8
304             v->goal_view_offset = 0.00;
305             return;
306         case GLUT_KEY_PAGE_UP: // numeric keypad 9
307             v->goal_view_offset = FG_PI * 1.75;
308             return;
309         }
310     } else {
311         fgPrintf( FG_INPUT, FG_DEBUG, "\n");
312         switch (k) {
313         case GLUT_KEY_F8: // F8 toggles fog ... off fastest nicest...
314             current_options.cycle_fog();
315         
316             if ( current_options.get_fog() == fgOPTIONS::FG_FOG_DISABLED ) {
317                 fgPrintf( FG_INPUT, FG_INFO, "Fog disabled\n" );
318             } else if ( current_options.get_fog() == 
319                         fgOPTIONS::FG_FOG_FASTEST )
320             {
321                 fgPrintf( FG_INPUT, FG_INFO, 
322                           "Fog enabled, hint set to fastest\n" );
323             } else if ( current_options.get_fog() ==
324                         fgOPTIONS::FG_FOG_NICEST )
325             {
326                 fgPrintf( FG_INPUT, FG_INFO,
327                           "Fog enabled, hint set to nicest\n" );
328             }
329
330             return;
331         case GLUT_KEY_F9: // F9 toggles textures on and off...
332             if ( material_mgr.get_textures_loaded() ) {
333                 current_options.get_textures() ?
334                     current_options.set_textures(false) :
335                     current_options.set_textures(true);
336                 fgPrintf( FG_INPUT, FG_INFO, "Toggling texture\n" );
337             } else {
338                 fgPrintf( FG_INPUT, FG_INFO, 
339                           "No textures loaded, cannot toggle\n" );
340             }
341             return;
342         case GLUT_KEY_F10: // F10 toggles menu on and off...
343             fgPrintf(FG_INPUT, FG_INFO, "Invoking call back function");
344             hideMenuButton -> 
345                 setValue ((int) !(hideMenuButton -> getValue() ) );
346             hideMenuButton -> invokeCallback();
347             //exit(1);
348             return;
349         case GLUT_KEY_UP:
350             controls.move_elevator(0.05);
351             return;
352         case GLUT_KEY_DOWN:
353             controls.move_elevator(-0.05);
354             return;
355         case GLUT_KEY_LEFT:
356             controls.move_aileron(-0.05);
357             return;
358         case GLUT_KEY_RIGHT:
359             controls.move_aileron(0.05);
360             return;
361         case GLUT_KEY_HOME: // numeric keypad 1
362             controls.move_elevator_trim(0.001);
363             return;
364         case GLUT_KEY_END: // numeric keypad 7
365             controls.move_elevator_trim(-0.001);
366             return;
367         case GLUT_KEY_INSERT: // numeric keypad Ins
368             controls.move_rudder(-0.05);
369             return;
370         case 13: // numeric keypad Enter
371             controls.move_rudder(0.05);
372             return;
373         case 53: // numeric keypad 5
374             controls.set_aileron(0.0);
375             controls.set_elevator(0.0);
376             controls.set_rudder(0.0);
377             return;
378         case GLUT_KEY_PAGE_UP: // numeric keypad 9 (Pg Up)
379             controls.move_throttle( fgCONTROLS::FG_ALL_ENGINES, 0.01 );
380             return;
381         case GLUT_KEY_PAGE_DOWN: // numeric keypad 3 (Pg Dn)
382             controls.move_throttle( fgCONTROLS::FG_ALL_ENGINES, -0.01 );
383             return;
384         }
385     }
386 }
387
388
389 // $Log$
390 // Revision 1.31  1998/11/02 18:25:37  curt
391 // Check for __CYGWIN__ (b20) as well as __CYGWIN32__ (pre b20 compilers)
392 // Other misc. tweaks.
393 //
394 // Revision 1.30  1998/10/25 14:08:46  curt
395 // Turned "struct fgCONTROLS" into a class, with inlined accessor functions.
396 //
397 // Revision 1.29  1998/10/20 14:58:57  curt
398 // Ctrl-R now reverses default polygon winding so I can see if a hole in the
399 // terrain is a result of improper winding, or if it is just an empty hole.
400 //
401 // Revision 1.28  1998/10/17 01:34:20  curt
402 // C++ ifying ...
403 //
404 // Revision 1.27  1998/10/02 12:46:46  curt
405 // Added an "auto throttle"
406 //
407 // Revision 1.26  1998/10/01 00:38:04  curt
408 // More altitude hold tweaks.
409 //
410 // Revision 1.25  1998/09/29 02:03:36  curt
411 // Autopilot mods.
412 //
413 // Revision 1.24  1998/09/26 13:16:44  curt
414 // C++-ified the comments.
415 //
416 // Revision 1.23  1998/09/17 18:35:30  curt
417 // Added F8 to toggle fog and F9 to toggle texturing.
418 //
419 // Revision 1.22  1998/09/15 04:27:27  curt
420 // Changes for new Astro code.
421 //
422 // Revision 1.21  1998/08/29 13:09:25  curt
423 // Changes to event manager from Bernie Bright.
424 //
425 // Revision 1.20  1998/08/24 20:11:12  curt
426 // Added i/I to toggle full vs. minimal HUD.
427 // Added a --hud-tris vs --hud-culled option.
428 // Moved options accessor funtions to options.hxx.
429 //
430 // Revision 1.19  1998/08/05 00:19:33  curt
431 // Added a local routine to update lighting params every frame when time is
432 // accelerated.
433 //
434 // Revision 1.18  1998/07/30 23:48:24  curt
435 // Output position & orientation when pausing.
436 // Eliminated libtool use.
437 // Added options to specify initial position and orientation.
438 // Changed default fov to 55 degrees.
439 // Added command line option to start in paused or unpaused state.
440 //
441 // Revision 1.17  1998/07/27 18:41:23  curt
442 // Added a pause command "p"
443 // Fixed some initialization order problems between pui and glut.
444 // Added an --enable/disable-sound option.
445 //
446 // Revision 1.16  1998/07/16 17:33:34  curt
447 // "H" / "h" now control hud brightness as well with off being one of the
448 //   states.
449 // Better checking for xmesa/fx 3dfx fullscreen/window support for deciding
450 //   whether or not to build in the feature.
451 // Translucent menu support.
452 // HAVE_AUDIO_SUPPORT -> ENABLE_AUDIO_SUPPORT
453 // Use fork() / wait() for playing mp3 init music in background under unix.
454 // Changed default tile diameter to 5.
455 //
456 // Revision 1.15  1998/07/13 21:01:34  curt
457 // Wrote access functions for current fgOPTIONS.
458 //
459 // Revision 1.14  1998/07/06 02:42:02  curt
460 // Added support for switching between fullscreen and window mode for
461 // Mesa/3dfx/glide.
462 //
463 // Added a basic splash screen.  Restructured the main loop and top level
464 // initialization routines to do this.
465 //
466 // Hacked in some support for playing a startup mp3 sound file while rest
467 // of sim initializes.  Currently only works in Unix using the mpg123 player.
468 // Waits for the mpg123 player to finish before initializing internal
469 // sound drivers.
470 //
471 // Revision 1.13  1998/06/27 16:54:32  curt
472 // Replaced "extern displayInstruments" with a entry in fgOPTIONS.
473 // Don't change the view port when displaying the panel.
474 //
475 // Revision 1.12  1998/06/12 14:27:26  curt
476 // Pui -> PUI, Gui -> GUI.
477 //
478 // Revision 1.11  1998/06/12 00:57:38  curt
479 // Added support for Pui/Gui.
480 // Converted fog to GL_FOG_EXP2.
481 // Link to static simulator parts.
482 // Update runfg.bat to try to be a little smarter.
483 //
484 // Revision 1.10  1998/05/27 02:24:05  curt
485 // View optimizations by Norman Vine.
486 //
487 // Revision 1.9  1998/05/16 13:05:21  curt
488 // Added limits to fov.
489 //
490 // Revision 1.8  1998/05/13 18:29:56  curt
491 // Added a keyboard binding to dynamically adjust field of view.
492 // Added a command line option to specify fov.
493 // Adjusted terrain color.
494 // Root path info moved to fgOPTIONS.
495 // Added ability to parse options out of a config file.
496 //
497 // Revision 1.7  1998/05/07 23:14:14  curt
498 // Added "D" key binding to set autopilot heading.
499 // Made frame rate calculation average out over last 10 frames.
500 // Borland C++ floating point exception workaround.
501 // Added a --tile-radius=n option.
502 //
503 // Revision 1.6  1998/04/28 01:20:20  curt
504 // Type-ified fgTIME and fgVIEW.
505 // Added a command line option to disable textures.
506 //
507 // Revision 1.5  1998/04/25 22:06:29  curt
508 // Edited cvs log messages in source files ... bad bad bad!
509 //
510 // Revision 1.4  1998/04/25 20:24:00  curt
511 // Cleaned up initialization sequence to eliminate interdependencies
512 // between sun position, lighting, and view position.  This creates a
513 // valid single pass initialization path.
514 //
515 // Revision 1.3  1998/04/24 14:19:29  curt
516 // Fog tweaks.
517 //
518 // Revision 1.2  1998/04/24 00:49:17  curt
519 // Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
520 // Trying out some different option parsing code.
521 // Some code reorganization.
522 //
523 // Revision 1.1  1998/04/22 13:25:40  curt
524 // C++ - ifing the code.
525 // Starting a bit of reorganization of lighting code.
526 //
527 // Revision 1.33  1998/04/18 04:11:25  curt
528 // Moved fg_debug to it's own library, added zlib support.
529 //
530 // Revision 1.32  1998/04/14 02:21:01  curt
531 // Incorporated autopilot heading hold contributed by:  Jeff Goeke-Smith
532 // <jgoeke@voyager.net>
533 //
534 // Revision 1.31  1998/04/08 23:34:05  curt
535 // Patch from Durk to fix trim reversal with numlock key active.
536 //
537 // Revision 1.30  1998/04/03 22:09:02  curt
538 // Converting to Gnu autoconf system.
539 //
540 // Revision 1.29  1998/02/07 15:29:40  curt
541 // Incorporated HUD changes and struct/typedef changes from Charlie Hotchkiss
542 // <chotchkiss@namg.us.anritsu.com>
543 //
544 // Revision 1.28  1998/02/03 23:20:23  curt
545 // Lots of little tweaks to fix various consistency problems discovered by
546 // Solaris' CC.  Fixed a bug in fg_debug.c with how the fgPrintf() wrapper
547 // passed arguments along to the real printf().  Also incorporated HUD changes
548 // by Michele America.
549 //
550 // Revision 1.27  1998/01/27 00:47:55  curt
551 // Incorporated Paul Bleisch's <pbleisch@acm.org> new debug message
552 // system and commandline/config file processing code.
553 //
554 // Revision 1.26  1998/01/19 19:27:07  curt
555 // Merged in make system changes from Bob Kuehne <rpk@sgi.com>
556 // This should simplify things tremendously.
557 //
558 // Revision 1.25  1998/01/05 18:44:34  curt
559 // Add an option to advance/decrease time from keyboard.
560 //
561 // Revision 1.24  1997/12/30 16:36:46  curt
562 // Merged in Durk's changes ...
563 //
564 // Revision 1.23  1997/12/15 23:54:44  curt
565 // Add xgl wrappers for debugging.
566 // Generate terrain normals on the fly.
567 //
568 // Revision 1.22  1997/12/10 22:37:45  curt
569 // Prepended "fg" on the name of all global structures that didn't have it yet.
570 // i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
571 //
572 // Revision 1.21  1997/08/27 21:32:23  curt
573 // Restructured view calculation code.  Added stars.
574 //
575 // Revision 1.20  1997/08/27 03:30:13  curt
576 // Changed naming scheme of basic shared structures.
577 //
578 // Revision 1.19  1997/08/25 20:27:21  curt
579 // Merged in initial HUD and Joystick code.
580 //
581 // Revision 1.18  1997/08/22 21:34:38  curt
582 // Doing a bit of reorganizing and house cleaning.
583 //
584 // Revision 1.17  1997/07/19 22:34:02  curt
585 // Moved PI definitions to ../constants.h
586 // Moved random() stuff to ../Utils/ and renamed fg_random()
587 //
588 // Revision 1.16  1997/07/18 23:41:24  curt
589 // Tweaks for building with Cygnus Win32 compiler.
590 //
591 // Revision 1.15  1997/07/16 20:04:47  curt
592 // Minor tweaks to aid Win32 port.
593 //
594 // Revision 1.14  1997/07/12 03:50:20  curt
595 // Added an #include <Windows32/Base.h> to help compiling for Win32
596 //
597 // Revision 1.13  1997/06/25 15:39:46  curt
598 // Minor changes to compile with rsxnt/win32.
599 //
600 // Revision 1.12  1997/06/21 17:12:52  curt
601 // Capitalized subdirectory names.
602 //
603 // Revision 1.11  1997/06/18 04:10:31  curt
604 // A couple more runway tweaks ...
605 //
606 // Revision 1.10  1997/06/18 02:21:23  curt
607 // Hacked in a runway
608 //
609 // Revision 1.9  1997/06/02 03:40:06  curt
610 // A tiny bit more view tweaking.
611 //
612 // Revision 1.8  1997/06/02 03:01:38  curt
613 // Working on views (side, front, back, transitions, etc.)
614 //
615 // Revision 1.7  1997/05/31 19:16:25  curt
616 // Elevator trim added.
617 //
618 // Revision 1.6  1997/05/31 04:13:52  curt
619 // WE CAN NOW FLY!!!
620 //
621 // Continuing work on the LaRCsim flight model integration.
622 // Added some MSFS-like keyboard input handling.
623 //
624 // Revision 1.5  1997/05/30 23:26:19  curt
625 // Added elevator/aileron controls.
626 //
627 // Revision 1.4  1997/05/27 17:44:31  curt
628 // Renamed & rearranged variables and routines.   Added some initial simple
629 // timer/alarm routines so the flight model can be updated on a regular 
630 // interval.
631 //
632 // Revision 1.3  1997/05/23 15:40:25  curt
633 // Added GNU copyright headers.
634 // Fog now works!
635 //
636 // Revision 1.2  1997/05/23 00:35:12  curt
637 // Trying to get fog to work ...
638 //
639 // Revision 1.1  1997/05/21 15:57:50  curt
640 // Renamed due to added GLUT support.
641 //
642 // Revision 1.2  1997/05/19 18:22:41  curt
643 // Parameter tweaking ... starting to stub in fog support.
644 //
645 // Revision 1.1  1997/05/16 16:05:51  curt
646 // Initial revision.
647