Expose the sun halo texture handle.

This commit is contained in:
ehofman 2006-01-31 15:14:02 +00:00
parent 0cd4d44bd3
commit b3770cd26c
2 changed files with 8 additions and 0 deletions

View File

@ -79,6 +79,9 @@ public:
// retrun the current color of the sun // retrun the current color of the sun
inline float *get_color() { return cl->get( 0 ); } inline float *get_color() { return cl->get( 0 ); }
// return the texture id of the sun halo texture
inline GLuint get_texture_id() { return halo_state->getTextureHandle(); }
}; };

View File

@ -380,6 +380,11 @@ public:
*/ */
inline float *get_sun_color() { return oursun->get_color(); } inline float *get_sun_color() { return oursun->get_color(); }
/**
* Get the sun halo texture handle
*/
inline GLuint get_sun_texture_id() { return oursun->get_texture_id(); }
/** /**
* Add a cloud layer. * Add a cloud layer.