Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 8, 2006, 2:04:37 PM (19 years ago)
Author:
amaechler
Message:

branches/atmospheric_engine: general activate, cleanups

File:
1 edited

Legend:

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

    r8175 r8242  
    3333                virtual bool deactivate();
    3434
     35                inline void activateCloud() { this->activate(); }
     36                inline void deactivateCloud() { this->deactivate(); }
     37               
    3538                virtual void draw() const;
    3639                virtual void tick(float dt);
    3740
    38                 // void setRadius(float radius);
    39                 // void setTexture(char* fileName);
     41                inline void setCloudOption(const std::string& option) {
     42                        if (option == "activate") this->cloudActivate = true;
     43                }
    4044
    4145
     
    4347                void initialize(char* fileName);
    4448
    45                 // GLUquadricObj*               sphereObj;              // A Placeholder for the Sphere.
     49                bool                            cloudActivate;
     50
    4651                Material*                       cloudMaterial;          // A Material for the Sphere.
    47                 float                           sphereRadius;           // Radius of the Sphere.
    4852
    49                 float                           mover;
    50                 float                           cloudSpeed;
    5153                std::string                     cloudTexture;
    5254
    53                 inline void setCloudTexture(const std::string& file) { this->cloudTexture = file; }
    54                 inline void setCloudAnimation(float speed) { this->cloudSpeed = speed; }
     55                Sglmodel_sgl                    cloudModel;
     56                Shader*                         cloudShader;
    5557
    56                 Sglmodel_sgl g_sky_model;
    57                 Shader* skyShader;
     58                GLfloat                         cloudTint[4];
     59                GLfloat                         cloudScroll;
    5860
    59                 float g_tint[4];
    60                 float g_scroll;
    61 
    62                 float time;
    63 
     61                float                           time;
    6462
    6563};
Note: See TracChangeset for help on using the changeset viewer.