Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 2, 2006, 1:57:21 PM (18 years ago)
Author:
patrick
Message:

trunk: lenseflares loadable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/effects/lense_flare.cc

    r6976 r6980  
    4646 LenseFlare::LenseFlare(const TiXmlElement* root)
    4747{
    48   if (root != NULL)
    49     this->loadParams(root);
     48  this->setClassID(CL_LENSE_FLARE, "LenseFlare");
    5049
    5150  this->flareMatrix = new float[14];
     
    6059
    6160  this->lightSource = (LightManager::getInstance())->getLight(0);
     61  PRINTF(0)("light is: %p\n", this->lightSource);
     62
     63  if (root != NULL)
     64  {
     65    this->loadParams(root);
     66    this->activate();
     67  }
    6268}
    6369
     
    8187  GraphicsEffect::loadParams(root);
    8288
    83     LoadParam(root, "add-flare-texture", this, LenseFlare, addFlare)
     89  LOAD_PARAM_START_CYCLE(root, element);
     90  {
     91    LoadParam_CYCLE(element, "add-flare-texture", this, LenseFlare, addFlare)
    8492        .describe("adds a lensflare texture to the engine");
    85 }
    86 
     93  }
     94  LOAD_PARAM_END_CYCLE(element);
     95}
    8796
    8897/**
     
    151160    bb->setVisibility(true);
    152161  }
     162  PRINTF(0)("Finished adding\n", textureName);
    153163}
    154164
Note: See TracChangeset for help on using the changeset viewer.