From 1ce5cd154a7e7684bfb6a1d45b17788c9696f83f Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 13 May 2003 19:00:49 +0000 Subject: [PATCH] Make the current color of the sun available --- simgear/scene/sky/oursun.hxx | 3 +++ simgear/scene/sky/sky.hxx | 7 +++++++ 2 files changed, 10 insertions(+) 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. * -- 2.39.5