/* Render Astronomical Objects */
void fgAstroRender() {
- struct FLIGHT *f;
- struct VIEW *v;
+ struct fgFLIGHT *f;
+ struct fgLIGHT *l;
+ struct fgVIEW *v;
struct fgTIME *t;
double angle;
f = ¤t_aircraft.flight;
+ l = &cur_light_params;
t = &cur_time_params;
v = ¤t_view;
glDisable( GL_FOG );
/* reverse light direction so the moon is displayed properly */
- glLightfv( GL_LIGHT0, GL_POSITION, t->sun_vec_inv );
+ glLightfv( GL_LIGHT0, GL_POSITION, l->sun_vec_inv );
glPushMatrix();
/* $Log$
-/* Revision 1.1 1997/11/25 23:20:22 curt
-/* Initial revision.
+/* Revision 1.3 1997/12/10 22:37:49 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.2 1997/12/09 04:25:33 curt
+ * Working on adding a global lighting params structure.
+ *
+ * Revision 1.1 1997/11/25 23:20:22 curt
+ * Initial revision.
+ *
*/