From: curt Date: Fri, 24 Apr 1998 14:19:29 +0000 (+0000) Subject: Fog tweaks. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a144bfc090d43b3d475b0e81d85a26be58921f68;p=flightgear.git Fog tweaks. --- diff --git a/Main/GLUTkey.cxx b/Main/GLUTkey.cxx index 948db1174..f6218e633 100644 --- a/Main/GLUTkey.cxx +++ b/Main/GLUTkey.cxx @@ -108,7 +108,7 @@ void GLUTkey(unsigned char k, int x, int y) { return; case 90: /* Z key */ w->visibility /= 1.10; - xglFogf (GL_FOG_START, w->visibility / 10000000.0 ); + xglFogf (GL_FOG_START, w->visibility / 1000000.0 ); xglFogf(GL_FOG_END, w->visibility); fgPrintf( FG_INPUT, FG_DEBUG, "Fog density = %.4f\n", w->visibility ); @@ -168,7 +168,7 @@ void GLUTkey(unsigned char k, int x, int y) { return; case 122: /* z key */ w->visibility *= 1.10; - xglFogf (GL_FOG_START, w->visibility / 10000000.0 ); + xglFogf (GL_FOG_START, w->visibility / 1000000.0 ); xglFogf(GL_FOG_END, w->visibility); fgPrintf( FG_INPUT, FG_DEBUG, "Fog density = %.4f\n", w->visibility); @@ -266,11 +266,14 @@ void GLUTspecialkey(int k, int x, int y) { /* $Log$ -/* Revision 1.2 1998/04/24 00:49:17 curt -/* Wrapped "#include " in "#ifdef HAVE_CONFIG_H" -/* Trying out some different option parsing code. -/* Some code reorganization. +/* Revision 1.3 1998/04/24 14:19:29 curt +/* Fog tweaks. /* + * Revision 1.2 1998/04/24 00:49:17 curt + * Wrapped "#include " in "#ifdef HAVE_CONFIG_H" + * Trying out some different option parsing code. + * Some code reorganization. + * * Revision 1.1 1998/04/22 13:25:40 curt * C++ - ifing the code. * Starting a bit of reorganization of lighting code. diff --git a/Main/GLUTmain.cxx b/Main/GLUTmain.cxx index 1f75614f0..d20bf55a6 100644 --- a/Main/GLUTmain.cxx +++ b/Main/GLUTmain.cxx @@ -200,7 +200,7 @@ static void fgInitVisuals( void ) { xglLightfv( GL_LIGHT0, GL_POSITION, l->sun_vec ); xglFogi (GL_FOG_MODE, GL_LINEAR); - xglFogf (GL_FOG_START, w->visibility / 10000000.0 ); + xglFogf (GL_FOG_START, w->visibility / 1000000.0 ); xglFogf (GL_FOG_END, w->visibility); // xglFogf (GL_FOG_DENSITY, w->visibility); xglHint (GL_FOG_HINT, GL_NICEST /* GL_FASTEST */ ); @@ -647,9 +647,8 @@ int main( int argc, char **argv ) { fgPrintf( FG_GENERAL, FG_EXIT, "\nShutting down ...\n"); } - // This is the general house keeping init routine. It initializes the - // debug trail scheme and then any other stuff. - + // These are a few miscellaneous things that aren't really + // "subsystems" but still need to be initialized. if( !fgInitGeneral()) { fgPrintf( FG_GENERAL, FG_EXIT, "General initializations failed ...\n" ); } @@ -663,22 +662,22 @@ int main( int argc, char **argv ) { "Subsystem initializations failed ...\n" ); } - // setup view parameters, only makes GL calls + // setup OpenGL view parameters fgInitVisuals(); if ( use_signals ) { - // init timer routines, signals, etc. Arrange for an - // alarm signal to be generated, etc. + // init timer routines, signals, etc. Arrange for an alarm + // signal to be generated, etc. fgInitTimeDepCalcs(); } - // Initialize the GLUT Event Handlers. + // Initialize the various GLUT Event Handlers. if( !fgGlutInitEvents() ) { fgPrintf( FG_GENERAL, FG_EXIT, "GLUT event handler initialization failed ...\n" ); } - // pass control off to the GLUT event handler + // pass control off to the master GLUT event handler glutMainLoop(); // we never actually get here ... but just in case ... :-) @@ -695,6 +694,9 @@ extern "C" { // $Log$ +// Revision 1.4 1998/04/24 14:19:30 curt +// Fog tweaks. +// // Revision 1.3 1998/04/24 00:49:18 curt // Wrapped "#include " in "#ifdef HAVE_CONFIG_H" // Trying out some different option parsing code.