Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2006, 4:05:14 PM (18 years ago)
Author:
amaechler
Message:

branches/atmosphere_engine: cosmetics

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/atmospheric_engine/src/lib/graphics/effects/snow_effect.h

    r7650 r7651  
    3535    void activateSnow();
    3636    void deactivateSnow();
    37    
     37
    3838  private:
    39     void numParticles(int n);
    40     void materialTexture(const std::string& texture);
    41     void lifeSpan(float lifeSpan, float randomLifeSpan);
    42     void radius(float radius, float randomRadius);
    43     void mass(float mass, float randomMass);
    44     void emissionRate(float emissionRate);
    45     void emissionVelocity(float velocity, float randomVelocity);
    46     void spread(float angle, float randomAngle);
    47     void size(float sizeX, float sizeY);
    48     void coord(float xCoor, float yCoor, float zCoor);
    49    
     39    void numParticles(int n) { this->particles = n; }
     40    void materialTexture(const std::string& texture) { this->texture = texture; }
     41    void lifeSpan(float lifeSpan, float randomLifeSpan) { this->life = lifeSpan; this->randomLife = randomLifeSpan; }
     42    void radius(float radius, float randomRadius) { this->snowRadius = radius; this->randomRadius = randomRadius; }
     43    void mass(float mass, float randomMass) { this->snowMass = mass; this->randomMass = randomMass; }
     44    void emissionRate(float emissionRate){ this->rate = emissionRate; }
     45    void emissionVelocity(float velocity, float randomVelocity){ this->velocity = velocity; this->randomVelocity = randomVelocity; }
     46    void spread(float angle, float randomAngle) { this->angle = angle; this->randomAngle = randomAngle; }
     47    void size(float sizeX, float sizeY) { this->snowSize = Vector2D(sizeX, sizeY); }
     48    void coord(float x, float y, float z) { this->snowCoord = Vector(x, y, z); }
     49
    5050    int particles;
    5151    std::string texture;
     
    6161
    6262    bool activated;
    63    
     63
    6464    static SpriteParticles* snowParticles;
    65    
     65
    6666    PlaneEmitter*          emitter;
    6767};
Note: See TracChangeset for help on using the changeset viewer.