From: curt Date: Mon, 2 Feb 1998 20:53:58 +0000 (+0000) Subject: Incorporated Durk's changes. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=c62427f6af22dc2c4c0655b647c5b17efc40e9a5;p=flightgear.git Incorporated Durk's changes. --- diff --git a/Main/GLUTmain.c b/Main/GLUTmain.c index ead4b3555..1fdb289d0 100644 --- a/Main/GLUTmain.c +++ b/Main/GLUTmain.c @@ -42,6 +42,7 @@ #include #include +#include #include #include #include @@ -257,13 +258,14 @@ static void fgRenderFrame( void ) { xglPushMatrix(); /* Translate to view position */ xglTranslatef( v->view_pos.x, v->view_pos.y, v->view_pos.z ); - /* Rotate based on gst (side real time) */ + /* Rotate based on gst (sidereal time) */ angle = t->gst * 15.041085; /* should be 15.041085, Curt thought it was 15*/ /* printf("Rotating astro objects by %.2f degrees\n",angle); */ xglRotatef( angle, 0.0, 0.0, -1.0 ); /* draw stars and planets */ fgStarsRender(); + fgPlanetsRender(); /* draw the sun */ fgSunRender(); @@ -274,7 +276,12 @@ static void fgRenderFrame( void ) { xglLightfv(GL_LIGHT0, GL_AMBIENT, white ); xglLightfv(GL_LIGHT0, GL_DIFFUSE, white ); xglEnable( GL_CULL_FACE ); + + /* Let's try some blending technique's (Durk)*/ + glEnable(GL_BLEND); + glBlendFunc(GL_ONE, GL_ONE); fgMoonRender(); + glDisable(GL_BLEND); xglPopMatrix(); @@ -633,9 +640,12 @@ int main( int argc, char *argv[] ) { /* $Log$ -/* Revision 1.54 1998/01/31 00:43:10 curt -/* Added MetroWorks patches from Carmen Volpe. +/* Revision 1.55 1998/02/02 20:53:58 curt +/* Incorporated Durk's changes. /* + * Revision 1.54 1998/01/31 00:43:10 curt + * Added MetroWorks patches from Carmen Volpe. + * * Revision 1.53 1998/01/27 18:35:54 curt * Minor tweaks. * diff --git a/Main/fg_init.c b/Main/fg_init.c index 12859b569..c4d8740d4 100644 --- a/Main/fg_init.c +++ b/Main/fg_init.c @@ -35,6 +35,7 @@ #include #include +#include #include #include #include @@ -254,8 +255,11 @@ void fgInitSubsystems( void ) { /* Initialize the Stars subsystem */ fgStarsInit(); + /* Initialize the planetary subsystem */ + fgEventRegister("fgPlanetsInit()", fgPlanetsInit, FG_EVENT_READY, 600000); + /* Initialize the sun's position */ - fgEventRegister( "fgSunInit()", fgSunInit, FG_EVENT_READY, 600000 ); + fgEventRegister( "fgSunInit()", fgSunInit, FG_EVENT_READY, 60000 ); /* Intialize the moon's position */ fgEventRegister( "fgMoonInit()", fgMoonInit, FG_EVENT_READY, 600000 ); @@ -314,9 +318,12 @@ void fgInitSubsystems( void ) { /* $Log$ -/* Revision 1.37 1998/02/01 03:39:54 curt -/* Minor tweaks. +/* Revision 1.38 1998/02/02 20:53:58 curt +/* Incorporated Durk's changes. /* + * Revision 1.37 1998/02/01 03:39:54 curt + * Minor tweaks. + * * Revision 1.36 1998/01/31 00:43:13 curt * Added MetroWorks patches from Carmen Volpe. * diff --git a/Time/fg_time.c b/Time/fg_time.c index 083f96315..da4c0bc08 100644 --- a/Time/fg_time.c +++ b/Time/fg_time.c @@ -211,7 +211,8 @@ double sidereal_course(struct tm *gmt, time_t now, double lng) { if ( daylight > 0 ) { daylight = 1; } else if ( daylight < 0 ) { - fgPrintf( FG_EVENT, FG_WARN, "OOOPS, big time problem in fg_time.c, no daylight savings info.\n"); + fgPrintf( FG_EVENT, FG_WARN, + "OOOPS, big time problem in fg_time.c, no daylight savings info.\n"); } offset = -(timezone / 3600 - daylight); @@ -310,9 +311,12 @@ void fgTimeUpdate(struct fgFLIGHT *f, struct fgTIME *t) { /* $Log$ -/* Revision 1.32 1998/02/01 03:39:56 curt -/* Minor tweaks. +/* Revision 1.33 1998/02/02 20:54:04 curt +/* Incorporated Durk's changes. /* + * Revision 1.32 1998/02/01 03:39:56 curt + * Minor tweaks. + * * Revision 1.31 1998/01/27 00:48:06 curt * Incorporated Paul Bleisch's new debug message * system and commandline/config file processing code.