From: ehofman Date: Tue, 31 Jan 2006 15:14:02 +0000 (+0000) Subject: Expose the sun halo texture handle. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=b3770cd26c05f4661ea3173361648083e8e262cc;p=simgear.git Expose the sun halo texture handle. --- diff --git a/simgear/scene/sky/oursun.hxx b/simgear/scene/sky/oursun.hxx index 3c33fd73..57d4b0cb 100644 --- a/simgear/scene/sky/oursun.hxx +++ b/simgear/scene/sky/oursun.hxx @@ -79,6 +79,9 @@ public: // retrun the current color of the sun 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(); } }; diff --git a/simgear/scene/sky/sky.hxx b/simgear/scene/sky/sky.hxx index bf38e364..277b6057 100644 --- a/simgear/scene/sky/sky.hxx +++ b/simgear/scene/sky/sky.hxx @@ -380,6 +380,11 @@ public: */ 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.