Changeset 8247 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.h
- Timestamp:
- Jun 8, 2006, 2:55:02 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.h
r8023 r8247 22 22 virtual bool activate(); 23 23 virtual bool deactivate(); 24 25 26 24 25 void activateFog() { this->activate(); } 26 void deactivateFog() { this->deactivate(); } 27 27 28 28 inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); } … … 30 30 inline void setFogRange(float start, float end) { this->fogStart = start; this->fogEnd = end; } 31 31 inline void setFogColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); } 32 32 inline void setFogOption(const std::string& option) { if (option == "activate") this->fogActivate = true; } 33 33 34 34 private: 35 35 GLint stringToFogMode(const std::string& mode); 36 36 37 private:38 GLint fogMode; 39 GL float fogDensity;40 GLfloat fogStart;41 GLfloat fogEnd;42 Vector colorVector;43 bool fogActivate;37 bool fogActivate; 38 39 GLint fogMode; 40 GLfloat fogDensity; 41 GLfloat fogStart; 42 GLfloat fogEnd; 43 Vector colorVector; 44 44 }; 45 45
Note: See TracChangeset
for help on using the changeset viewer.