#include "moon.h"
#include "../Aircraft/aircraft.h"
+#include "../Include/constants.h"
#include "../Include/general.h"
#include "../Main/views.h"
#include "../Time/fg_time.h"
rho = 0.99883 + 0.00167 * cos(2 * fgDegToRad(FG_Latitude));
if (geocCoord.RightAscension < 0)
- geocCoord.RightAscension += (2*M_PI);
+ geocCoord.RightAscension += (2*FG_PI);
HA = t.lst - (3.8197186 * geocCoord.RightAscension);
moonPos.Declination);
#endif
+ xMoon = 60000.0 * cos(moonPos.RightAscension) * cos(moonPos.Declination);
+ yMoon = 60000.0 * sin(moonPos.RightAscension) * cos(moonPos.Declination);
+ zMoon = 60000.0 * sin(moonPos.Declination);
+
if ( !dl_exists ) {
dl_exists = 1;
xglMaterialfv(GL_FRONT, GL_DIFFUSE, moon_color); */
- xMoon = 60000.0 * cos(moonPos.RightAscension) *
- cos(moonPos.Declination);
- yMoon = 60000.0 * sin(moonPos.RightAscension) *
- cos(moonPos.Declination);
- zMoon = 60000.0 * sin(moonPos.Declination);
-
glutSolidSphere(1.0, 10, 10);
xglEndList();
struct fgLIGHT *l;
GLfloat white[4] = { 1.0, 1.0, 1.0, 1.0 };
+ /* printf("Rendering moon\n"); */
+
l = &cur_light_params;
xglMaterialfv(GL_FRONT, GL_AMBIENT, l->sky_color );
/* $Log$
-/* Revision 1.14 1997/12/30 20:47:50 curt
-/* Integrated new event manager with subsystem initializations.
+/* Revision 1.16 1998/01/06 01:20:24 curt
+/* Tweaks to help building with MSVC++
/*
+ * Revision 1.15 1998/01/05 18:44:35 curt
+ * Add an option to advance/decrease time from keyboard.
+ *
+ * Revision 1.14 1997/12/30 20:47:50 curt
+ * Integrated new event manager with subsystem initializations.
+ *
* Revision 1.13 1997/12/30 16:41:00 curt
* Added log at end of file.
*