Changeset 8177 in orxonox.OLD for branches/atmospheric_engine
- Timestamp:
- Jun 6, 2006, 6:41:12 PM (18 years ago)
- Location:
- branches/atmospheric_engine/src/lib/graphics/effects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.cc
r8077 r8177 57 57 LoadParam(root, "coord", this, LighteningEffect, coord); 58 58 LoadParam(root, "option", this, LighteningEffect, setLighteningOption); 59 LoadParam(root, "frequency", this, LighteningEffect, setFlashFrequency); 60 LoadParam(root, "const-time", this, LighteningEffect, setFlashConstTime); 61 LoadParam(root, "size", this, LighteningEffect, setFlashSize); 62 LoadParam(root, "seed", this, LighteningEffect, setFlashSeed); 59 63 } 60 64 -
branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.h
r8077 r8177 35 35 void coord(float x, float y, float z); 36 36 37 inline void setLighteningOption(const std::string& option) { if (option == "activate") this->lighteningActivate = true; 38 /*if (option == "activate") this->snowActivate = true; */} 37 inline void setLighteningOption(const std::string& option) { if (option == "activate") this->lighteningActivate = true;} 38 inline void setFlashFrequency(float flashFrequency) { this->flashFrequency = flashFrequency; } 39 inline void setFlashConstTime(float flashConstTime) { this->flashConstTime = flashConstTime; } 40 inline void setFlashSize(float width, float height) { this->width = width; 41 this->height = height; } 42 inline void setFlashSeed(float seedX, float seedZ, float seedTime) { this->seedX = seedX; 43 this->seedZ = seedZ; 44 this->seedTime = seedTime; } 39 45 40 46 void activateLightening() { this->activate(); } … … 45 51 bool lighteningActivate; 46 52 47 float flashFrequency; //!< frequency to activate itself 48 float flashRisingTime; //!< time to rise 49 float flashConstTime; //!< time to be drawn 50 float flashFallTime; //!< time to fall 53 float flashFrequency; 54 float flashConstTime; 51 55 52 float time; //!< time56 float time; 53 57 54 //bool bRender;55 58 bool bNewCoordinate; 56 //Material* material;57 //Vector offset;58 59 float width; 59 60 float height;
Note: See TracChangeset
for help on using the changeset viewer.