----------------------------------------------------------------*/
struct CelestialCoord fgCalculateMoon(struct OrbElements params,
struct OrbElements sunParams,
- struct fgTIME t)
+ fgTIME t)
{
struct CelestialCoord
geocCoord, topocCoord;
/* $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.
struct CelestialCoord fgCalculateMoon(struct OrbElements Params,
struct OrbElements sunParams,
- struct fgTIME t);
+ fgTIME t);
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.
*
struct OrbElements pltOrbElements[9];
-double fgCalcActTime(struct fgTIME t)
+double fgCalcActTime(fgTIME t)
{
return (t.mjd - 36523.5);
}
}
-int fgSolarSystemInit(struct fgTIME t)
+int fgSolarSystemInit(fgTIME t)
{
fgGENERAL *g;
char path[80];
}
-void fgSolarSystemUpdate(struct OrbElements *planet, struct fgTIME t)
+void fgSolarSystemUpdate(struct OrbElements *planet, fgTIME t)
{
double
actTime;
/* $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.
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.
*
struct CelestialCoord fgCalculatePlanet(struct OrbElements planet,
struct OrbElements theSun,
- struct fgTIME t, int idx)
+ fgTIME t, int idx)
{
struct CelestialCoord result;
/* $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!
*
struct CelestialCoord fgCalculatePlanet(struct OrbElements planet,
- struct OrbElements theSun,
- struct fgTIME t, int idx);
+ struct OrbElements theSun,
+ fgTIME t, int idx);
void fgPlanetsInit( 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.
*
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;
/* $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!
*
/* 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;
/* $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!
*
/* 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.
*
struct CelestialCoord fgCalculateSun (struct OrbElements params,
- struct fgTIME t)
+ fgTIME t)
{
struct CelestialCoord result;
double xe, ye, ze, ecl, actTime;
/* 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 }; */
/* $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!
*