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