From: ehofman Date: Tue, 13 May 2003 19:00:49 +0000 (+0000) Subject: Make the current color of the sun available X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1ce5cd154a7e7684bfb6a1d45b17788c9696f83f;p=simgear.git Make the current color of the sun available --- diff --git a/simgear/scene/sky/oursun.hxx b/simgear/scene/sky/oursun.hxx index 2ee90040..343a4edb 100644 --- a/simgear/scene/sky/oursun.hxx +++ b/simgear/scene/sky/oursun.hxx @@ -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 ); } }; diff --git a/simgear/scene/sky/sky.hxx b/simgear/scene/sky/sky.hxx index 95b5ecba..fba4d486 100644 --- a/simgear/scene/sky/sky.hxx +++ b/simgear/scene/sky/sky.hxx @@ -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. *