Changeset 8253 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.h
- Timestamp:
- Jun 8, 2006, 3:21:15 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.h
r8247 r8253 26 26 void deactivateFog() { this->deactivate(); } 27 27 28 virtual void draw() const; 29 virtual void tick(float dt); 30 28 31 inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); } 29 32 inline void setFogDensity(float density) { this->fogDensity = density; } … … 32 35 inline void setFogOption(const std::string& option) { if (option == "activate") this->fogActivate = true; } 33 36 37 void startFogging(); 38 34 39 private: 35 40 GLint stringToFogMode(const std::string& mode); 36 41 37 42 bool fogActivate; 38 43 GLfloat fogFadeDuration; 44 float localTimer; 45 39 46 GLint fogMode; 40 47 GLfloat fogDensity; 48 GLfloat fogFadeDensity; 49 41 50 GLfloat fogStart; 42 51 GLfloat fogEnd;
Note: See TracChangeset
for help on using the changeset viewer.