Changeset 8457 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.h
- Timestamp:
- Jun 15, 2006, 1:43:24 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.h
r8455 r8457 20 20 class Vector; 21 21 22 class CloudEffect : public WeatherEffect 23 { 24 public: 25 CloudEffect(const TiXmlElement* root = NULL); 26 virtual ~CloudEffect(); 22 class CloudEffect : public WeatherEffect { 23 public: 24 CloudEffect(const TiXmlElement* root = NULL); 25 virtual ~CloudEffect(); 27 26 28 27 virtual void loadParams(const TiXmlElement* root); 29 28 30 29 virtual void init(); 31 30 32 33 31 virtual void activate(); 32 virtual void deactivate(); 34 33 35 inline void activateCloud() { this->activate(); } 36 inline void deactivateCloud() { this->deactivate(); } 37 38 virtual void draw() const; 39 virtual void tick(float dt); 34 inline void activateCloud() { 35 this->activate(); 36 } 37 inline void deactivateCloud() { 38 this->deactivate(); 39 } 40 40 41 inline void setCloudOption(const std::string& option) { 42 if (option == "activate") this->cloudActivate = true; 43 } 41 virtual void draw() const; 42 virtual void tick(float dt); 43 44 inline void setCloudOption(const std::string& option) { 45 if (option == "activate") 46 this->cloudActivate = true; 47 } 44 48 45 49 46 47 50 private: 51 void initialize(char* fileName); 48 52 49 boolcloudActivate;53 bool cloudActivate; 50 54 51 Material* cloudMaterial;// A Material for the Sphere.55 Material* cloudMaterial; // A Material for the Sphere. 52 56 53 std::stringcloudTexture;57 std::string cloudTexture; 54 58 55 Sglmodel_sglcloudModel;56 Shader*cloudShader;59 Sglmodel_sgl cloudModel; 60 Shader* cloudShader; 57 61 58 GLfloatcloudTint[4];59 GLfloatcloudScroll;62 GLfloat cloudTint[4]; 63 GLfloat cloudScroll; 60 64 61 floattime;65 float time; 62 66 63 67 };
Note: See TracChangeset
for help on using the changeset viewer.