Changeset 6980 in orxonox.OLD for trunk/src/lib/graphics/effects/lense_flare.cc
- Timestamp:
- Feb 2, 2006, 1:57:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/effects/lense_flare.cc
r6976 r6980 46 46 LenseFlare::LenseFlare(const TiXmlElement* root) 47 47 { 48 if (root != NULL) 49 this->loadParams(root); 48 this->setClassID(CL_LENSE_FLARE, "LenseFlare"); 50 49 51 50 this->flareMatrix = new float[14]; … … 60 59 61 60 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 } 62 68 } 63 69 … … 81 87 GraphicsEffect::loadParams(root); 82 88 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) 84 92 .describe("adds a lensflare texture to the engine"); 85 } 86 93 } 94 LOAD_PARAM_END_CYCLE(element); 95 } 87 96 88 97 /** … … 151 160 bb->setVisibility(true); 152 161 } 162 PRINTF(0)("Finished adding\n", textureName); 153 163 } 154 164
Note: See TracChangeset
for help on using the changeset viewer.