Make the current color of the sun available

This commit is contained in:
ehofman
2003-05-13 19:00:49 +00:00
parent 1fce27f0c3
commit 1ce5cd154a
2 changed files with 10 additions and 0 deletions

View 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 ); }
};

View 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.
*