From b3a533f8ce05a24b68dc1a0e26a9ca1ddc7458df Mon Sep 17 00:00:00 2001 From: curt Date: Tue, 27 Aug 2002 21:43:35 +0000 Subject: [PATCH] Add #ifdef'd out support for plibs cheesy lens flare object. --- simgear/sky/oursun.cxx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/simgear/sky/oursun.cxx b/simgear/sky/oursun.cxx index e423db02..61255048 100644 --- a/simgear/sky/oursun.cxx +++ b/simgear/sky/oursun.cxx @@ -25,6 +25,10 @@ // $Id$ +#ifdef HAVE_CONFIG_H +# include +#endif + #include #include @@ -33,6 +37,10 @@ #include #include +#ifdef FG_CHEESY_LENS_FLARE +# include +#endif + #include "sphere.hxx" #include "oursun.hxx" @@ -109,6 +117,8 @@ SGSun::~SGSun( void ) { #if 0 +// this might be nice to keep, just as an example of how to generate a +// texture on the fly ... static GLuint makeHalo( GLubyte *sun_texbuf, int width ) { int texSize; GLuint texid; @@ -304,6 +314,16 @@ ssgBranch * SGSun::build( SGPath path, double sun_size ) { sun_transform->addKid( halo ); sun_transform->addKid( orb ); +#if 0 + // enable this code to add a super cheesy lens flare effect to the sun. + +# ifdef FG_PLIB_SUPPORTS_LENS_FLARE + // cheesy lens flair + sun_transform->addKid( new ssgaLensFlare ); +# endif + +#endif + return sun_transform; } -- 2.39.5