Make the current color of the sun available
This commit is contained in:
@@ -74,6 +74,9 @@ public:
|
|||||||
bool reposition( sgVec3 p, double angle,
|
bool reposition( sgVec3 p, double angle,
|
||||||
double rightAscension, double declination,
|
double rightAscension, double declination,
|
||||||
double sun_dist );
|
double sun_dist );
|
||||||
|
|
||||||
|
// retrun the current color of the sun
|
||||||
|
inline float *get_color() { return cl->get( 0 ); }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -348,6 +348,13 @@ public:
|
|||||||
post_selector->select( 0 );
|
post_selector->select( 0 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the current sun color
|
||||||
|
*/
|
||||||
|
inline float *get_sun_color() { return oursun->get_color(); }
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Add a cloud layer.
|
* Add a cloud layer.
|
||||||
*
|
*
|
||||||
|
|||||||
Reference in New Issue
Block a user