Changeset 8242 in orxonox.OLD for branches/atmospheric_engine/src/lib/graphics/effects/snow_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/snow_effect.h
r8023 r8242 33 33 virtual bool deactivate(); 34 34 35 inline void activateSnow() { this->activate(); } 36 inline void deactivateSnow() { this->deactivate(); } 37 35 38 virtual void draw() const; 36 39 virtual void tick(float dt); 37 40 38 void activateSnow() { this->activate(); }39 void deactivateSnow() { this->deactivate(); }40 41 41 42 inline void numParticles(int n) { this->particles = n; } … … 48 49 inline void size(float sizeX, float sizeY) { this->snowSize = Vector2D(sizeX, sizeY); } 49 50 inline void coord(float x, float y, float z) { this->snowCoord = Vector(x, y, z); } 50 inline void wind(int force) { this->snowWindForce = force; } 51 inline void setSnowOption(const std::string& option) { /*if (option == "fade") this->snowFade = true;*/ 52 if (option == "movesnow") this->snowMove = true; 53 if (option == "activate") this->snowActivate = true; } 51 inline void wind(int force) { this->snowWindForce = force; } 52 53 inline void setSnowOption(const std::string& option) { 54 /*if (option == "fade") this->snowFade = true;*/ 55 if (option == "movesnow") this->snowMove = true; 56 if (option == "activate") this->snowActivate = true; 57 } 54 58 55 59 56 60 private: 57 int 58 std::string 59 float 60 float 61 float 62 float 63 float 64 float 65 float 66 Vector 67 Vector2D 68 int 61 int particles; 62 std::string texture; 63 float life, randomLife; 64 float snowRadius, randomRadius; 65 float snowMass, randomMass; 66 float rate; 67 float velocity, randomVelocity; 68 float angle, randomAngle; 69 float alpha; 70 Vector snowCoord; 71 Vector2D snowSize; 72 int snowWindForce; 69 73 70 //bool activated; 71 bool snowMove; 72 bool snowActivate; 73 74 PlaneEmitter* emitter; 74 bool snowMove; 75 bool snowActivate; 75 76 76 static SpriteParticles* snowParticles; 77 OrxSound::SoundSource soundSource; 78 OrxSound::SoundBuffer* windBuffer; 77 PlaneEmitter* emitter; 78 79 static SpriteParticles* snowParticles; 80 OrxSound::SoundSource soundSource; 81 OrxSound::SoundBuffer* windBuffer; 79 82 80 83 };
Note: See TracChangeset
for help on using the changeset viewer.