Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 17, 2006, 2:24:13 PM (19 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine: work on the snow effect

File:
1 edited

Legend:

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

    r7576 r7649  
    3131    virtual void draw() const;
    3232    virtual void tick(float dt);
     33
     34    void activateSnow();
     35    void deactivateSnow();
    3336   
    34     void activateSnow();
     37  private:
     38    void numParticles(int n);
     39    void materialTexture(const std::string& texture);
     40    void lifeSpan(float lifeSpan, float randomLifeSpan);
     41    void radius(float radius, float randomRadius);
     42    void mass(float mass, float randomMass);
     43    void emissionRate(float emissionRate);
     44    void emissionVelocity(float velocity, float randomVelocity);
     45    void spread(float angle, float randomAngle);
     46    void size(float sizeX, float sizeY);
     47    void coord(float xCoor, float yCoor, float zCoor);
     48   
     49    int particles;
     50    std::string texture;
     51    float life, randomLife;
     52    float snowRadius, randomRadius;
     53    float snowMass, randomMass;
     54    float rate;
     55    float velocity, randomVelocity;
     56    float angle, randomAngle;
     57    Vector snowCoord;
     58    Vector2D snowSize;
    3559
    36 //     inline void setSnowMode(const std::string& mode) { this->snowMode = this->stringToSnowMode(mode); }
    37 //     inline void setSnowDensity(float density) { this->snowDensity = density; }
    38 //     inline void setSnowRange(float start, float end) { this->snowStart = start; this->snowEnd = end; }
    39 //     inline void setSnowColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); }
    40   private:
    41 //     GLint                    snowMode;
    42 //     GLfloat                 snowDensity;
    43 //     GLfloat                 snowStart;
    44 //     GLfloat                 snowEnd;
    45 //     Vector                  colorVector;
    4660    static SpriteParticles* snowParticles;
    4761   
Note: See TracChangeset for help on using the changeset viewer.