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