Changeset 8242 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.h
- Timestamp:
- Jun 8, 2006, 2:04:37 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/cloud_effect.h
r8175 r8242 33 33 virtual bool deactivate(); 34 34 35 inline void activateCloud() { this->activate(); } 36 inline void deactivateCloud() { this->deactivate(); } 37 35 38 virtual void draw() const; 36 39 virtual void tick(float dt); 37 40 38 // void setRadius(float radius); 39 // void setTexture(char* fileName); 41 inline void setCloudOption(const std::string& option) { 42 if (option == "activate") this->cloudActivate = true; 43 } 40 44 41 45 … … 43 47 void initialize(char* fileName); 44 48 45 // GLUquadricObj* sphereObj; // A Placeholder for the Sphere. 49 bool cloudActivate; 50 46 51 Material* cloudMaterial; // A Material for the Sphere. 47 float sphereRadius; // Radius of the Sphere.48 52 49 float mover;50 float cloudSpeed;51 53 std::string cloudTexture; 52 54 53 inline void setCloudTexture(const std::string& file) { this->cloudTexture = file; }54 inline void setCloudAnimation(float speed) { this->cloudSpeed = speed; }55 Sglmodel_sgl cloudModel; 56 Shader* cloudShader; 55 57 56 Sglmodel_sgl g_sky_model;57 Shader* skyShader;58 GLfloat cloudTint[4]; 59 GLfloat cloudScroll; 58 60 59 float g_tint[4]; 60 float g_scroll; 61 62 float time; 63 61 float time; 64 62 65 63 };
Note: See TracChangeset
for help on using the changeset viewer.