]> git.mxchange.org Git - flightgear.git/commitdiff
Type-ified fgTIME and fgVIEW
authorcurt <curt>
Tue, 28 Apr 1998 01:18:59 +0000 (01:18 +0000)
committercurt <curt>
Tue, 28 Apr 1998 01:18:59 +0000 (01:18 +0000)
Astro/moon.cxx
Astro/moon.hxx
Astro/orbits.cxx
Astro/orbits.hxx
Astro/planets.cxx
Astro/planets.hxx
Astro/sky.cxx
Astro/stars.cxx
Astro/stars.hxx
Astro/sun.cxx

index 04b358e128b2f3cd63a178c3194aeeb630efd565..c774b3ee6d512ce7d4e4a022765bfc534cbc9f8e 100644 (file)
@@ -57,7 +57,7 @@ static GLint moon = 0;
 ----------------------------------------------------------------*/
 struct CelestialCoord fgCalculateMoon(struct OrbElements params,
                                       struct OrbElements sunParams,
-                                      struct fgTIME t)
+                                      fgTIME t)
 {
   struct CelestialCoord
     geocCoord, topocCoord; 
@@ -216,9 +216,12 @@ void fgMoonRender( void ) {
 
 
 /* $Log$
-/* Revision 1.3  1998/04/25 22:06:24  curt
-/* Edited cvs log messages in source files ... bad bad bad!
+/* Revision 1.4  1998/04/28 01:18:59  curt
+/* Type-ified fgTIME and fgVIEW
 /*
+ * Revision 1.3  1998/04/25 22:06:24  curt
+ * Edited cvs log messages in source files ... bad bad bad!
+ *
  * Revision 1.2  1998/04/24 00:45:00  curt
  * Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
  * Fixed a bug when generating sky colors.
index 22e665a584dc892206f73467228b3ebc486d90ee..af635ce98bd7c1b74f57f2477aa418e0b1a77f64 100644 (file)
@@ -46,7 +46,7 @@ void fgMoonRender( void );
 
 struct CelestialCoord fgCalculateMoon(struct OrbElements Params,
                                       struct OrbElements sunParams,
-                                      struct fgTIME t);
+                                      fgTIME t);
 
 extern struct OrbElements pltOrbElements[9];
 
@@ -55,10 +55,13 @@ extern struct OrbElements pltOrbElements[9];
 
 
 /* $Log$
-/* Revision 1.2  1998/04/24 00:45:00  curt
-/* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
-/* Fixed a bug when generating sky colors.
+/* Revision 1.3  1998/04/28 01:19:00  curt
+/* Type-ified fgTIME and fgVIEW
 /*
+ * Revision 1.2  1998/04/24 00:45:00  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:28  curt
  * C++ - ifing the code a bit.
  *
index a865f058247613924c8c18c76a7bbd1c5c94d5d3..df8f94d06458820bfdda03db907de4f21f6e2191 100644 (file)
@@ -41,7 +41,7 @@
 struct OrbElements pltOrbElements[9];
 
 
-double fgCalcActTime(struct fgTIME t)
+double fgCalcActTime(fgTIME t)
 {
   return (t.mjd - 36523.5);
 }
@@ -111,7 +111,7 @@ int fgReadOrbElements(struct OrbElements *dest, FILE *src)
 }
 
 
-int fgSolarSystemInit(struct fgTIME t)
+int fgSolarSystemInit(fgTIME t)
 {
     fgGENERAL *g;
     char path[80];
@@ -152,7 +152,7 @@ int fgSolarSystemInit(struct fgTIME t)
 }
 
 
-void fgSolarSystemUpdate(struct OrbElements *planet, struct fgTIME t)
+void fgSolarSystemUpdate(struct OrbElements *planet, fgTIME t)
 {
    double
          actTime;
@@ -170,9 +170,12 @@ void fgSolarSystemUpdate(struct OrbElements *planet, struct fgTIME t)
 
 
 /* $Log$
-/* Revision 1.3  1998/04/25 22:06:25  curt
-/* Edited cvs log messages in source files ... bad bad bad!
+/* Revision 1.4  1998/04/28 01:19:00  curt
+/* Type-ified fgTIME and fgVIEW
 /*
+ * Revision 1.3  1998/04/25 22:06:25  curt
+ * Edited cvs log messages in source files ... bad bad bad!
+ *
  * Revision 1.2  1998/04/24 00:45:01  curt
  * Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
  * Fixed a bug when generating sky colors.
index d0cd4a9824f65d980d424109ca2491ad482ae1f5..1d8e87054f8e852dac0f9d89440dac50c6433010 100644 (file)
@@ -77,21 +77,24 @@ struct CelestialCoord {
 
 
 double fgCalcEccAnom(double M, double e);
-double fgCalcActTime(struct fgTIME t);
+double fgCalcActTime(fgTIME t);
 
 int fgReadOrbElements (struct OrbElements *dest, FILE * src);
-int  fgSolarSystemInit(struct fgTIME t);
-void fgSolarSystemUpdate(struct OrbElements *planets, struct fgTIME t);
+int  fgSolarSystemInit(fgTIME t);
+void fgSolarSystemUpdate(struct OrbElements *planets, fgTIME t);
 
 
 #endif /* _ORBITS_HXX */
 
 
 /* $Log$
-/* Revision 1.2  1998/04/24 00:45:01  curt
-/* Wrapped "#include <config.h>" in "#ifdef HAVE_CONFIG_H"
-/* Fixed a bug when generating sky colors.
+/* Revision 1.3  1998/04/28 01:19:01  curt
+/* Type-ified fgTIME and fgVIEW
 /*
+ * Revision 1.2  1998/04/24 00:45:01  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:30  curt
  * C++ - ifing the code a bit.
  *
index 890c1295e24ad8bc7a57a3a7ab0c04c7d2ef06cd..f4ef433ea121553da1873a2a4a03275c5c7caf1a 100644 (file)
@@ -47,7 +47,7 @@ GLint planets = 0;
 
 struct CelestialCoord fgCalculatePlanet(struct OrbElements planet,
                                         struct OrbElements theSun,
-                                        struct fgTIME t, int idx)
+                                        fgTIME t, int idx)
 {
     struct CelestialCoord result;
 
@@ -210,9 +210,12 @@ void fgPlanetsRender( void ) {
 
 
 /* $Log$
-/* Revision 1.4  1998/04/26 05:10:01  curt
-/* "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+/* Revision 1.5  1998/04/28 01:19:01  curt
+/* Type-ified fgTIME and fgVIEW
 /*
+ * Revision 1.4  1998/04/26 05:10:01  curt
+ * "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+ *
  * Revision 1.3  1998/04/25 22:06:25  curt
  * Edited cvs log messages in source files ... bad bad bad!
  *
index b83a270b4c61ef8792641cf110f6953e77242885..9076b0ff7cceb96e1bda4111fd12abd326926224 100644 (file)
@@ -33,8 +33,8 @@
 
 
 struct CelestialCoord fgCalculatePlanet(struct OrbElements planet,
-                                         struct OrbElements theSun,
-                                         struct fgTIME t, int idx);
+                                       struct OrbElements theSun,
+                                       fgTIME t, int idx);
 
 
 void fgPlanetsInit( void );
@@ -45,9 +45,12 @@ void fgPlanetsRender( void );
 
 
 /* $Log$
-/* Revision 1.1  1998/04/22 13:21:32  curt
-/* C++ - ifing the code a bit.
+/* Revision 1.2  1998/04/28 01:19:02  curt
+/* Type-ified fgTIME and fgVIEW
 /*
+ * Revision 1.1  1998/04/22 13:21:32  curt
+ * C++ - ifing the code a bit.
+ *
  * Revision 1.5  1998/04/21 17:02:31  curt
  * Prepairing for C++ integration.
  *
index 4f9e219bc8d5b885fbe9e8cf12240dcdca2d64d5..caedbf73d67ca24555f79475c56d79e4643d709d 100644 (file)
@@ -261,7 +261,7 @@ void fgSkyInit( void ) {
 void fgSkyRender( void ) {
     fgFLIGHT *f;
     fgLIGHT *l;
-    struct fgVIEW *v;
+    fgVIEW *v;
     float /* inner_color[4], middle_color[4], diff, */ east_dot, dot, angle;
     int i;
 
@@ -373,9 +373,12 @@ void fgSkyRender( void ) {
 
 
 /* $Log$
-/* Revision 1.4  1998/04/26 05:10:01  curt
-/* "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+/* Revision 1.5  1998/04/28 01:19:02  curt
+/* Type-ified fgTIME and fgVIEW
 /*
+ * Revision 1.4  1998/04/26 05:10:01  curt
+ * "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+ *
  * Revision 1.3  1998/04/25 22:06:25  curt
  * Edited cvs log messages in source files ... bad bad bad!
  *
index 11de41264fa14a485175944b658ba9f38fc22b5b..a7ba50f3e7a084dd2e5d280507666345be7a4fef 100644 (file)
@@ -223,9 +223,9 @@ int fgStarsInit( void ) {
 /* Draw the Stars */
 void fgStarsRender( void ) {
     fgFLIGHT *f;
-    struct fgVIEW *v;
+    fgVIEW *v;
     fgLIGHT *l;
-    struct fgTIME *t;
+    fgTIME *t;
     int i;
 
     f = current_aircraft.flight;
@@ -260,9 +260,12 @@ void fgStarsRender( void ) {
 
 
 /* $Log$
-/* Revision 1.4  1998/04/26 05:10:02  curt
-/* "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+/* Revision 1.5  1998/04/28 01:19:03  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!
  *
index e38d8f0136d563535ea74ae1a3d94dd47e543d62..678e2d8f36954244fe93bda3e38c658ee51ff706 100644 (file)
@@ -42,17 +42,21 @@ int fgStarsInit( void );
 
 /* Draw the Stars */
 void fgStarsRender( void );
+
 extern struct OrbElements pltOrbElements[9];
-extern struct fgTIME cur_time_params;
+extern fgTIME cur_time_params;
 
 
 #endif /* _STARS_HXX */
 
 
 /* $Log$
-/* Revision 1.1  1998/04/22 13:21:35  curt
-/* C++ - ifing the code a bit.
+/* Revision 1.2  1998/04/28 01:19:03  curt
+/* Type-ified fgTIME and fgVIEW
 /*
+ * Revision 1.1  1998/04/22 13:21:35  curt
+ * C++ - ifing the code a bit.
+ *
  * Revision 1.5  1998/04/21 17:02:33  curt
  * Prepairing for C++ integration.
  *
index 6b9b85e496b285682e8f4d01d466154e2703395a..f802b768b338cd88c29572c7208ce68d2e9cb82a 100644 (file)
@@ -76,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;
@@ -105,8 +105,8 @@ struct CelestialCoord fgCalculateSun (struct OrbElements params,
 /* Initialize the Sun */
 void fgSunInit( void ) {
     fgLIGHT *l;
-    struct fgTIME *t;
-    struct fgVIEW *v;  
+    fgTIME *t;
+    fgVIEW *v;  
     float xSun, ySun, zSun;
 
     /* GLfloat color[4] = { 1.00, 1.00, 1.00, 1.00 }; */
@@ -192,9 +192,12 @@ void fgSunRender( void ) {
 
 
 /* $Log$
-/* Revision 1.4  1998/04/26 05:10:02  curt
-/* "struct fgLIGHT" -> "fgLIGHT" because fgLIGHT is typedef'd.
+/* 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!
  *