Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 16, 2006, 11:41:25 AM (18 years ago)
Author:
amaechler
Message:

branches/atmospheric_engine: Basic RainEffect working

File:
1 edited

Legend:

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

    r7577 r7628  
    77
    88#include "vector.h"
     9#include "vector2D.h"
     10
    911#include "particle_system.h"
    10 //#include "material.h"
    1112
    1213class SparkParticles;
    13 class ParticleEmitter;
     14class PlainEmitter;
    1415
    1516#include "weather_effect.h"
     
    2930    virtual bool deactivate();
    3031
    31     virtual void draw() const;
    32 
    33 //     inline void setRainMode(const std::string& mode) { this->rainMode = this->stringToRainMode(mode); }
    34 //     inline void setRainDensity(float density) { this->rainDensity = density; }
    35 //     inline void setRainRange(float start, float end) { this->rainStart = start; this->rainEnd = end; }
    36 //     inline void setRainColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); }
     32    inline void setRainCoord(float x, float y, float z) { this->rainCoord = Vector(x, y, z); }
     33    inline void setRainSize(float x, float y) { this->rainSize = Vector2D(x, y); }
     34    inline void setRainRate(float rate) { this->rainRate = rate;}
     35    inline void setRainVelocity(float velocity) { this->rainVelocity = velocity; }
    3736
    3837  private:
     
    4039    ParticleEmitter*                  emitter;
    4140
    42 //     GLfloat                 rainDensity;
    43 //     GLfloat                 rainStart;
    44 //     GLfloat                 rainEnd;
    45 //     Vector                  colorVector;
     41    Vector                            rainCoord;
     42    Vector2D                          rainSize;
     43    GLfloat                           rainRate;
     44    GLfloat                           rainVelocity;
    4645};
    4746
Note: See TracChangeset for help on using the changeset viewer.