From: curt Date: Mon, 6 Mar 2000 22:27:52 +0000 (+0000) Subject: Working on ssg-ifying the sky dome. Added the moon and other various tweaks. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a8d8c9d24eac8894d040069735d59c4ee6ad481c;p=simgear.git Working on ssg-ifying the sky dome. Added the moon and other various tweaks. --- diff --git a/simgear/ephemeris/ephemeris.cxx b/simgear/ephemeris/ephemeris.cxx index 1469c28f..86a6047e 100644 --- a/simgear/ephemeris/ephemeris.cxx +++ b/simgear/ephemeris/ephemeris.cxx @@ -28,12 +28,14 @@ // Constructor FGEphemeris::FGEphemeris( void ) { our_sun = new Star; + moon = new Moon; } // Destructor FGEphemeris::~FGEphemeris( void ) { delete our_sun; + delete moon; } @@ -41,5 +43,6 @@ FGEphemeris::~FGEphemeris( void ) { // time void FGEphemeris::update( FGTime *t ) { our_sun->updatePosition( t ); + moon->updatePosition( t, our_sun ); } diff --git a/simgear/ephemeris/ephemeris.hxx b/simgear/ephemeris/ephemeris.hxx index c681fcc1..59c876f0 100644 --- a/simgear/ephemeris/ephemeris.hxx +++ b/simgear/ephemeris/ephemeris.hxx @@ -29,11 +29,13 @@ #include