Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 15, 2006, 1:43:24 PM (19 years ago)
Author:
amaechler
Message:

atmospheric: void etc bugfixes

File:
1 edited

Legend:

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

    r8455 r8457  
    2020class Vector;
    2121
    22 class CloudEffect : public WeatherEffect
    23 {
    24         public:
    25                 CloudEffect(const TiXmlElement* root = NULL);
    26                 virtual ~CloudEffect();
     22class CloudEffect : public WeatherEffect {
     23public:
     24    CloudEffect(const TiXmlElement* root = NULL);
     25    virtual ~CloudEffect();
    2726
    28                 virtual void loadParams(const TiXmlElement* root);
     27    virtual void loadParams(const TiXmlElement* root);
    2928
    30                 virtual void init();
     29    virtual void init();
    3130
    32                 virtual void activate();
    33                 virtual void deactivate();
     31    virtual void activate();
     32    virtual void deactivate();
    3433
    35                 inline void activateCloud() { this->activate(); }
    36                 inline void deactivateCloud() { this->deactivate(); }
    37                
    38                 virtual void draw() const;
    39                 virtual void tick(float dt);
     34    inline void activateCloud() {
     35        this->activate();
     36    }
     37    inline void deactivateCloud() {
     38        this->deactivate();
     39    }
    4040
    41                 inline void setCloudOption(const std::string& option) {
    42                         if (option == "activate") this->cloudActivate = true;
    43                 }
     41    virtual void draw() const;
     42    virtual void tick(float dt);
     43
     44    inline void setCloudOption(const std::string& option) {
     45        if (option == "activate")
     46            this->cloudActivate = true;
     47    }
    4448
    4549
    46         private:
    47                 void initialize(char* fileName);
     50private:
     51    void initialize(char* fileName);
    4852
    49                 bool                            cloudActivate;
     53    bool        cloudActivate;
    5054
    51                 Material*                       cloudMaterial;          // A Material for the Sphere.
     55    Material*     cloudMaterial;    // A Material for the Sphere.
    5256
    53                 std::string                     cloudTexture;
     57    std::string     cloudTexture;
    5458
    55                 Sglmodel_sgl                    cloudModel;
    56                 Shader*                         cloudShader;
     59    Sglmodel_sgl      cloudModel;
     60    Shader*       cloudShader;
    5761
    58                 GLfloat                         cloudTint[4];
    59                 GLfloat                         cloudScroll;
     62    GLfloat       cloudTint[4];
     63    GLfloat       cloudScroll;
    6064
    61                 float                           time;
     65    float       time;
    6266
    6367};
Note: See TracChangeset for help on using the changeset viewer.