Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 8, 2006, 3:15:59 PM (18 years ago)
Author:
hdavid
Message:

branches/atmospheric_engiengine: lightening effect

File:
1 edited

Legend:

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

    r8223 r8251  
    1616
    1717class Billboard;
     18class Light;
    1819
    1920class LighteningEffect : public WeatherEffect
     
    3435   
    3536    void coord(float x, float y, float z);
     37    void setFlashSize(float width, float height, float seedWidth, float seedHeight);
    3638   
    3739    inline void setLighteningOption(const std::string& option) { if (option == "activate") this->lighteningActivate = true;}
     
    3941    inline void setFlashConstTime(float flashConstTime) { this->flashConstTime = flashConstTime; }
    4042    inline void setFlashRisingTime(float flashRisingTime) { if(flashRisingTime > this->flashConstTime)
    41                                                               this->flashRisingTime = this->flashConstTime/2;
    42                                                             else
    43                                                               this->flashRisingTime = flashRisingTime; }
    44     inline void setFlashSize(float width, float height) { this->width = width;
    45                                                           this->height = height; }
     43                                                                                        this->flashRisingTime = this->flashConstTime/2;
     44                                                                                      else
     45                                                                                        this->flashRisingTime = flashRisingTime; }
    4646    inline void setFlashSeed(float seedX, float seedZ, float seedTime) { this->seedX = seedX;
    47                                                                          this->seedZ = seedZ;
    48                                                                          this->seedTime = seedTime; }
     47                                                                                                         this->seedZ = seedZ;
     48                                                                                                         this->seedTime = seedTime; }
    4949
    5050    void activateLightening() { this->activate(); }
     
    5454    Billboard* billboard[4];
    5555    bool lighteningActivate;
    56     int lightening1;
    57     int lightening2;
    58     int lightening3;
    5956
    6057    float flashFrequency;
     
    6764    float width;
    6865    float height;
     66    float seedWidth;
     67    float seedHeight;
    6968
    7069    float seedX;
     
    7675    float mainPosZ;
    7776
     77    Light* flashLight;
     78   
    7879    //OrxSound::SoundSource    soundSource;
    7980    //OrxSound::SoundBuffer*   thunderBuffer;
Note: See TracChangeset for help on using the changeset viewer.