]> git.mxchange.org Git - simgear.git/blobdiff - Astro/sun.cxx
Use new C++ events class.
[simgear.git] / Astro / sun.cxx
index 039953d9de8a205bdf658ee98f0edc67c8c9d8d8..f802b768b338cd88c29572c7208ce68d2e9cb82a 100644 (file)
@@ -23,7 +23,9 @@
  **************************************************************************/
 
 
-#include <config.h>
+#ifdef HAVE_CONFIG_H
+#  include <config.h>
+#endif
  
 #ifdef HAVE_WINDOWS_H                                           
 #  include <windows.h>                                           
@@ -35,7 +37,7 @@
 #include <Debug/fg_debug.h>
 #include <Include/fg_constants.h>
 #include <Main/views.hxx>
-#include <Time/fg_time.h>
+#include <Time/fg_time.hxx>
 #include <Time/sunpos.hxx>
 
 #include "orbits.hxx"
@@ -74,7 +76,7 @@ void fgCalcSunPos(struct OrbElements params)
 
 
 struct CelestialCoord fgCalculateSun (struct OrbElements params, 
-                                     struct fgTIME t)
+                                     fgTIME t)
 {
     struct CelestialCoord result;
     double xe, ye, ze, ecl, actTime;
@@ -102,9 +104,9 @@ struct CelestialCoord fgCalculateSun (struct OrbElements params,
 
 /* Initialize the Sun */
 void fgSunInit( void ) {
-    struct fgLIGHT *l;
-    struct fgTIME *t;
-    struct fgVIEW *v;  
+    fgLIGHT *l;
+    fgTIME *t;
+    fgVIEW *v;  
     float xSun, ySun, zSun;
 
     /* GLfloat color[4] = { 1.00, 1.00, 1.00, 1.00 }; */
@@ -190,9 +192,22 @@ void fgSunRender( void ) {
 
 
 /* $Log$
-/* Revision 1.1  1998/04/22 13:21:36  curt
-/* C++ - ifing the code a bit.
+/* Revision 1.5  1998/04/28 01:19:04  curt
+/* Type-ified fgTIME and fgVIEW
 /*
+ * Revision 1.4  1998/04/26 05:10:02  curt
+ * "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+ *
+ * Revision 1.3  1998/04/25 22:06:26  curt
+ * Edited cvs log messages in source files ... bad bad bad!
+ *
+ * Revision 1.2  1998/04/24 00:45:04  curt
+ * Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
+ * Fixed a bug when generating sky colors.
+ *
+ * Revision 1.1  1998/04/22 13:21:36  curt
+ * C++ - ifing the code a bit.
+ *
  * Revision 1.10  1998/04/18 04:13:58  curt
  * Moved fg_debug.c to it's own library.
  *
@@ -215,7 +230,7 @@ void fgSunRender( void ) {
  * To version 0.29
  *
  * Revision 1.4  1998/01/27 00:47:50  curt
- * Incorporated Paul Bleisch's <bleisch@chromatic.com> new debug message
+ * Incorporated Paul Bleisch's <pbleisch@acm.org> new debug message
  * system and commandline/config file processing code.
  *
  * Revision 1.3  1998/01/19 19:27:00  curt