]> git.mxchange.org Git - simgear.git/commitdiff
Make the current color of the sun available
authorehofman <ehofman>
Tue, 13 May 2003 19:00:49 +0000 (19:00 +0000)
committerehofman <ehofman>
Tue, 13 May 2003 19:00:49 +0000 (19:00 +0000)
simgear/scene/sky/oursun.hxx
simgear/scene/sky/sky.hxx

index 2ee90040fc4285432c808da5dc6e115a0d53b133..343a4edb27551243f507b14b976acfbbfb2f8e5a 100644 (file)
@@ -74,6 +74,9 @@ public:
     bool reposition( sgVec3 p, double angle,
                     double rightAscension, double declination,
                     double sun_dist );
+
+    // retrun the current color of the sun
+    inline float *get_color() { return  cl->get( 0 ); }
 };
 
 
index 95b5ecba150c7ed718cc6fd224ded32673b2a594..fba4d48621777c00919cacfd13b071db46d7a401 100644 (file)
@@ -348,6 +348,13 @@ public:
        post_selector->select( 0 );
     }
 
+
+    /**
+     * Get the current sun color
+     */
+    inline float *get_sun_color() { return oursun->get_color(); }
+
+
     /**
      * Add a cloud layer.
      *