-/* $Log$
-/* Revision 1.2 1998/04/24 00:52:31 curt
-/* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
-/* Fog color fixes.
-/* Separated out lighting calcs into their own file.
-/*
- * Revision 1.1 1998/04/22 13:24:07 curt
- * C++ - ifiing the code a bit.
- * Starting to reorginize some of the lighting calcs to use a table lookup.
- *
- * Revision 1.27 1998/04/03 22:12:57 curt
- * Converting to Gnu autoconf system.
- * Centralized time handling differences.
- *
- * Revision 1.26 1998/02/23 19:08:00 curt
- * Incorporated Durk's Astro/ tweaks. Includes unifying the sun position
- * calculation code between sun display, and other FG sections that use this
- * for things like lighting.
- *
- * Revision 1.25 1998/02/09 15:07:53 curt
- * Minor tweaks.
- *
- * Revision 1.24 1998/01/27 00:48:07 curt
- * Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
- * system and commandline/config file processing code.
- *
- * Revision 1.23 1998/01/19 19:27:21 curt
- * Merged in make system changes from Bob Kuehne <rpk@sgi.com>
- * This should simplify things tremendously.
- *
- * Revision 1.22 1998/01/19 18:40:40 curt
- * Tons of little changes to clean up the code and to remove fatal errors
- * when building with the c++ compiler.
- *
- * Revision 1.21 1997/12/30 23:10:19 curt
- * Calculate lighting parameters here.
- *
- * Revision 1.20 1997/12/30 22:22:43 curt
- * Further integration of event manager.
- *
- * Revision 1.19 1997/12/30 20:47:59 curt
- * Integrated new event manager with subsystem initializations.
- *
- * Revision 1.18 1997/12/23 04:58:40 curt
- * Tweaked the sky coloring a bit to build in structures to allow finer rgb
- * control.
- *
- * Revision 1.17 1997/12/15 23:55:08 curt
- * Add xgl wrappers for debugging.
- * Generate terrain normals on the fly.
- *
- * Revision 1.16 1997/12/11 04:43:57 curt
- * Fixed sun vector and lighting problems. I thing the moon is now lit
- * correctly.
- *
- * Revision 1.15 1997/12/10 22:37:55 curt
- * Prepended "fg" on the name of all global structures that didn't have it yet.
- * i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
- *
- * Revision 1.14 1997/12/09 04:25:39 curt
- * Working on adding a global lighting params structure.
- *
- * Revision 1.13 1997/11/25 19:25:42 curt
- * Changes to integrate Durk's moon/sun code updates + clean up.
- *
- * Revision 1.12 1997/11/15 18:15:39 curt
- * Reverse direction of sun vector, so object normals can be more normal.
- *
- * Revision 1.11 1997/10/28 21:07:21 curt
- * Changed GLUT/ -> Main/
- *
- * Revision 1.10 1997/09/13 02:00:09 curt
- * Mostly working on stars and generating sidereal time for accurate star
- * placement.
- *
- * Revision 1.9 1997/09/05 14:17:31 curt
- * More tweaking with stars.
- *
- * Revision 1.8 1997/09/05 01:36:04 curt
- * Working on getting stars right.
- *
- * Revision 1.7 1997/09/04 02:17:40 curt
- * Shufflin' stuff.
- *
- * Revision 1.6 1997/08/27 03:30:37 curt
- * Changed naming scheme of basic shared structures.
- *
- * Revision 1.5 1997/08/22 21:34:41 curt
- * Doing a bit of reorganizing and house cleaning.
- *
- * Revision 1.4 1997/08/19 23:55:09 curt
- * Worked on better simulating real lighting.
- *
- * Revision 1.3 1997/08/13 20:23:49 curt
- * The interface to sunpos now updates a global structure rather than returning
- * current sun position.
- *
- * Revision 1.2 1997/08/06 00:24:32 curt
- * Working on correct real time sun lighting.
- *
- * Revision 1.1 1997/08/01 15:27:56 curt
- * Initial revision.
- *
- */
+// $Log$
+// Revision 1.3 1998/04/25 20:24:03 curt
+// Cleaned up initialization sequence to eliminate interdependencies
+// between sun position, lighting, and view position. This creates a
+// valid single pass initialization path.
+//
+// Revision 1.2 1998/04/24 00:52:31 curt
+// Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
+// Fog color fixes.
+// Separated out lighting calcs into their own file.
+//
+// Revision 1.1 1998/04/22 13:24:07 curt
+// C++ - ifiing the code a bit.
+// Starting to reorginize some of the lighting calcs to use a table lookup.
+//
+// Revision 1.27 1998/04/03 22:12:57 curt
+// Converting to Gnu autoconf system.
+// Centralized time handling differences.
+//
+// Revision 1.26 1998/02/23 19:08:00 curt
+// Incorporated Durk's Astro/ tweaks. Includes unifying the sun position
+// calculation code between sun display, and other FG sections that use this
+// for things like lighting.
+//
+// Revision 1.25 1998/02/09 15:07:53 curt
+// Minor tweaks.
+//
+// Revision 1.24 1998/01/27 00:48:07 curt
+// Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
+// system and commandline/config file processing code.
+//
+// Revision 1.23 1998/01/19 19:27:21 curt
+// Merged in make system changes from Bob Kuehne <rpk@sgi.com>
+// This should simplify things tremendously.
+//
+// Revision 1.22 1998/01/19 18:40:40 curt
+// Tons of little changes to clean up the code and to remove fatal errors
+// when building with the c++ compiler.
+//
+// Revision 1.21 1997/12/30 23:10:19 curt
+// Calculate lighting parameters here.
+//
+// Revision 1.20 1997/12/30 22:22:43 curt
+// Further integration of event manager.
+//
+// Revision 1.19 1997/12/30 20:47:59 curt
+// Integrated new event manager with subsystem initializations.
+//
+// Revision 1.18 1997/12/23 04:58:40 curt
+// Tweaked the sky coloring a bit to build in structures to allow finer rgb
+// control.
+//
+// Revision 1.17 1997/12/15 23:55:08 curt
+// Add xgl wrappers for debugging.
+// Generate terrain normals on the fly.
+//
+// Revision 1.16 1997/12/11 04:43:57 curt
+// Fixed sun vector and lighting problems. I thing the moon is now lit
+// correctly.
+//
+// Revision 1.15 1997/12/10 22:37:55 curt
+// Prepended "fg" on the name of all global structures that didn't have it yet.
+// i.e. "struct WEATHER {}" became "struct fgWEATHER {}"
+//
+// Revision 1.14 1997/12/09 04:25:39 curt
+// Working on adding a global lighting params structure.
+//
+// Revision 1.13 1997/11/25 19:25:42 curt
+// Changes to integrate Durk's moon/sun code updates + clean up.
+//
+// Revision 1.12 1997/11/15 18:15:39 curt
+// Reverse direction of sun vector, so object normals can be more normal.
+//
+// Revision 1.11 1997/10/28 21:07:21 curt
+// Changed GLUT/ -> Main/
+//
+// Revision 1.10 1997/09/13 02:00:09 curt
+// Mostly working on stars and generating sidereal time for accurate star
+// placement.
+//
+// Revision 1.9 1997/09/05 14:17:31 curt
+// More tweaking with stars.
+//
+// Revision 1.8 1997/09/05 01:36:04 curt
+// Working on getting stars right.
+//
+// Revision 1.7 1997/09/04 02:17:40 curt
+// Shufflin' stuff.
+//
+// Revision 1.6 1997/08/27 03:30:37 curt
+// Changed naming scheme of basic shared structures.
+//
+// Revision 1.5 1997/08/22 21:34:41 curt
+// Doing a bit of reorganizing and house cleaning.
+//
+// Revision 1.4 1997/08/19 23:55:09 curt
+// Worked on better simulating real lighting.
+//
+// Revision 1.3 1997/08/13 20:23:49 curt
+// The interface to sunpos now updates a global structure rather than returning
+// current sun position.
+//
+// Revision 1.2 1997/08/06 00:24:32 curt
+// Working on correct real time sun lighting.
+//
+// Revision 1.1 1997/08/01 15:27:56 curt
+// Initial revision.
+//