From a8d8c9d24eac8894d040069735d59c4ee6ad481c Mon Sep 17 00:00:00 2001 From: curt Date: Mon, 6 Mar 2000 22:27:52 +0000 Subject: [PATCH] Working on ssg-ifying the sky dome. Added the moon and other various tweaks. --- simgear/ephemeris/ephemeris.cxx | 3 + simgear/ephemeris/ephemeris.hxx | 9 ++ simgear/ephemeris/moon.cxx | 26 +++++- simgear/ephemeris/moon.hxx | 32 ++++--- simgear/ephemeris/solarsystem.cxx | 6 +- simgear/ephemeris/star.cxx | 147 +----------------------------- simgear/ephemeris/star.hxx | 6 +- 7 files changed, 62 insertions(+), 167 deletions(-) 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