From b3770cd26c05f4661ea3173361648083e8e262cc Mon Sep 17 00:00:00 2001 From: ehofman Date: Tue, 31 Jan 2006 15:14:02 +0000 Subject: [PATCH] Expose the sun halo texture handle. --- simgear/scene/sky/oursun.hxx | 3 +++ simgear/scene/sky/sky.hxx | 5 +++++ 2 files changed, 8 insertions(+) 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. -- 2.39.5