Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8177 in orxonox.OLD


Ignore:
Timestamp:
Jun 6, 2006, 6:41:12 PM (18 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine: lightening effect

Location:
branches/atmospheric_engine/src/lib/graphics/effects
Files:
2 edited

Legend:

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

    r8077 r8177  
    5757  LoadParam(root, "coord", this, LighteningEffect, coord);
    5858  LoadParam(root, "option", this, LighteningEffect, setLighteningOption);
     59  LoadParam(root, "frequency", this, LighteningEffect, setFlashFrequency);
     60  LoadParam(root, "const-time", this, LighteningEffect, setFlashConstTime);
     61  LoadParam(root, "size", this, LighteningEffect, setFlashSize);
     62  LoadParam(root, "seed", this, LighteningEffect, setFlashSeed);
    5963}
    6064
  • branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.h

    r8077 r8177  
    3535    void coord(float x, float y, float z);
    3636   
    37     inline void setLighteningOption(const std::string& option) { if (option == "activate") this->lighteningActivate = true;
    38                                                                                   /*if (option == "activate") this->snowActivate = true; */}
     37    inline void setLighteningOption(const std::string& option) { if (option == "activate") this->lighteningActivate = true;}
     38    inline void setFlashFrequency(float flashFrequency) { this->flashFrequency = flashFrequency; }
     39    inline void setFlashConstTime(float flashConstTime) { this->flashConstTime = flashConstTime; }
     40    inline void setFlashSize(float width, float height) { this->width = width;
     41                                                          this->height = height; }
     42    inline void setFlashSeed(float seedX, float seedZ, float seedTime) { this->seedX = seedX;
     43                                                                         this->seedZ = seedZ;
     44                                                                         this->seedTime = seedTime; }
    3945
    4046    void activateLightening() { this->activate(); }
     
    4551    bool lighteningActivate;
    4652
    47     float flashFrequency;                   //!< frequency to activate itself
    48     float flashRisingTime;                  //!< time to rise
    49     float flashConstTime;                   //!< time to be drawn
    50     float flashFallTime;                    //!< time to fall
     53    float flashFrequency;
     54    float flashConstTime;
    5155
    52     float time;                             //!< time
     56    float time;
    5357
    54     //bool  bRender;
    5558    bool  bNewCoordinate;
    56     //Material*      material;
    57     //Vector         offset;
    5859    float width;
    5960    float height;
Note: See TracChangeset for help on using the changeset viewer.