void fgSkyRender( void ) {
FGState *f;
fgLIGHT *l;
- fgVIEW *v;
float inner_color[4];
float middle_color[4];
float outer_color[4];
f = current_aircraft.fdm_state;
l = &cur_light_params;
- v = ¤t_view;
// printf("Rendering the sky.\n");
xglPushMatrix();
// Translate to view position
- xglTranslatef( v->cur_zero_elev.x(),
- v->cur_zero_elev.y(),
- v->cur_zero_elev.z() );
+ Point3D zero_elev = current_view.get_cur_zero_elev();
+ xglTranslatef( zero_elev.x(), zero_elev.y(), zero_elev.z() );
// printf(" Translated to %.2f %.2f %.2f\n",
- // v->cur_zero_elev.x, v->cur_zero_elev.y, v->cur_zero_elev.z );
+ // zero_elev.x, zero_elev.y, zero_elev.z );
// Rotate to proper orientation
// printf(" lon = %.2f lat = %.2f\n", FG_Longitude * RAD_TO_DEG,
// $Log$
+// Revision 1.17 1998/12/09 18:50:12 curt
+// Converted "class fgVIEW" to "class FGView" and updated to make data
+// members private and make required accessor functions.
+//
// Revision 1.16 1998/12/05 15:54:03 curt
// Renamed class fgFLIGHT to class FGState as per request by JSB.
//
// Draw the Stars
void fgStarsRender( void ) {
FGState *f;
- fgVIEW *v;
fgLIGHT *l;
fgTIME *t;
int i;
f = current_aircraft.fdm_state;
l = &cur_light_params;
t = &cur_time_params;
- v = ¤t_view;
// FG_PI_2 + 0.1 is about 6 degrees after sundown and before sunrise
// $Log$
+// Revision 1.25 1998/12/09 18:50:15 curt
+// Converted "class fgVIEW" to "class FGView" and updated to make data
+// members private and make required accessor functions.
+//
// Revision 1.24 1998/12/05 15:54:04 curt
// Renamed class fgFLIGHT to class FGState as per request by JSB.
//