Jonathan Polley
> 
> I did see this code block in SkySceneLoader.cpp (I assume that it is 
> global data):
> 
> // Need to add a light here until we figure out how to use the sun 
> position and color
> SkyLight::SkyLightType eType = SkyLight::SKY_LIGHT_DIRECTIONAL;
> SkyLight *pLight = new SkyLight(eType);
> 
> Is there any way I can defer this until after the main() starts?

Good catch :-)

try something like 

SkyLight *pLight = NULL;


bool SkySceneLoader::Load(std::string filename)
{ 
  
  if ( !pLight ) {
    pLight = new SkyLight(eType);
    if( !pLight)
      DO SOMETHING DRASTIC  
  }
  SkyArchive archive;
.....


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to