From: curt Date: Mon, 9 Mar 1998 22:45:57 +0000 (+0000) Subject: Minor tweaks for building on sparc platform. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=52b427cfb5e60c01ad6a7d757efe6f61eb7de6c8;p=flightgear.git Minor tweaks for building on sparc platform. --- diff --git a/Main/GLUTmain.c b/Main/GLUTmain.c index b8810047b..52045c314 100644 --- a/Main/GLUTmain.c +++ b/Main/GLUTmain.c @@ -32,7 +32,7 @@ #include #include -#ifdef __sparc__ +#ifdef __sun # include #else # include @@ -212,7 +212,7 @@ static void fgInitVisuals( void ) { xglLightfv( GL_LIGHT0, GL_POSITION, l->sun_vec ); xglFogi (GL_FOG_MODE, GL_LINEAR); - /* xglFogf (GL_FOG_START, 1.0); */ + xglFogf (GL_FOG_START, 10.0); xglFogf (GL_FOG_END, w->visibility); /* xglFogf (GL_FOG_DENSITY, w->visibility); */ xglHint (GL_FOG_HINT, GL_NICEST /* GL_FASTEST */ ); @@ -266,6 +266,13 @@ static void fgUpdateViewParams( void ) { v->view_pos.z + v->view_forward[2], v->view_up[0], v->view_up[1], v->view_up[2]); + /* look almost straight up (testing and eclipse watching) */ + /* gluLookAt(v->view_pos.x, v->view_pos.y, v->view_pos.z, + v->view_pos.x + v->view_up[0] + .001, + v->view_pos.y + v->view_up[1] + .001, + v->view_pos.z + v->view_up[2] + .001, + v->view_up[0], v->view_up[1], v->view_up[2]); */ + /* lock view horizontally towards sun (testing) */ /* gluLookAt(v->view_pos.x, v->view_pos.y, v->view_pos.z, v->view_pos.x + v->surface_to_sun[0], @@ -793,9 +800,12 @@ extern "C" { #endif /* $Log$ -/* Revision 1.64 1998/02/20 00:16:23 curt -/* Thursday's tweaks. +/* Revision 1.65 1998/03/09 22:45:57 curt +/* Minor tweaks for building on sparc platform. /* + * Revision 1.64 1998/02/20 00:16:23 curt + * Thursday's tweaks. + * * Revision 1.63 1998/02/16 16:17:39 curt * Minor tweaks. *