Changeset 8119 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.h
- Timestamp:
- Jun 2, 2006, 12:16:09 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/atmospheric_engine/src/lib/graphics/effects/rain_effect.h
r8074 r8119 35 35 virtual bool deactivate(); 36 36 37 void activateRain() { this->activate(); } 38 void deactivateRain() { this->deactivate(); } 37 virtual void tick(float dt); 39 38 40 virtual void tick(float dt); 39 inline void activateRain() { this->activate(); } 40 inline void deactivateRain() { this->deactivate(); } 41 41 42 42 inline void setRainCoord(float x, float y, float z) { this->rainCoord = Vector(x, y, z); } … … 46 46 inline void setRainLife(float life) { this->rainLife = life; } 47 47 inline void setRainWind(int force) { this->rainWindForce = force; } 48 inline void setRainOption(const std::string& option) { if (option == "moverain") this->rainMove = true; 49 if (option == "activate") this->rainActivate = true; } 48 inline void setRainOption(const std::string& option) { 49 if (option == "moverain") this->rainMove = true; 50 if (option == "activate") this->rainActivate = true; 51 } 50 52 53 void startRaining(float duration); 51 54 52 55 private: 53 static SparkParticles* 54 ParticleEmitter* 56 static SparkParticles* rainParticles; 57 ParticleEmitter* emitter; 55 58 56 Vector 57 Vector2D 58 GLfloat 59 GLfloat 60 GLfloat 61 GLfloat 62 int 63 bool 64 boolrainActivate;59 Vector rainCoord; 60 Vector2D rainSize; 61 GLfloat rainRate; 62 GLfloat rainVelocity; 63 GLfloat rainLife; 64 GLfloat rainMaxParticles; 65 int rainWindForce; 66 bool rainMove; 67 bool rainActivate; 65 68 66 69 OrxSound::SoundSource soundSource; 67 70 OrxSound::SoundBuffer* rainBuffer; 68 71 OrxSound::SoundBuffer* windBuffer; 69 70 72 73 LightManager* lightMan; 71 74 }; 72 75 73 74 76 #endif /* _RAIN_EFFECT */
Note: See TracChangeset
for help on using the changeset viewer.