Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 26, 2006, 3:52:46 PM (19 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine: basic framework

File:
1 edited

Legend:

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

    r7221 r7379  
    11/**
    22 * @file fog_effect.h
    3  *  atmospheric fog
    43 */
    54
     
    76#define _FOG_EFFECT
    87
    9 #include "vector.h"
    10 #include "graphics_effect.h"
     8#include "weather_effects.h"
    119
    12 class TiXmlElement;
    13 
    14 //! A class that handles FogEffects. The FogEffectManager operates on this.
    15 class FogEffect : public GraphicsEffect
     10class FogEffect : public WeatherEffects
    1611{
    1712  public:
     
    2621    virtual bool deactivate();
    2722
    28     inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); }
     23
     24    void setTest(int test);
     25
     26    /*inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); }
    2927    inline void setFogDensity(float density) { this->fogDensity = density; }
    3028    inline void setFogRange(float start, float end) { this->fogStart = start; this->fogEnd = end; }
    3129    inline void setFogColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); }
     30*/
     31
     32  private:
     33    //GLint stringToFogMode(const std::string& mode);
    3234
    3335
    3436  private:
    35     GLint stringToFogMode(const std::string& mode);
    36 
    37 
    38   private:
    39     GLint                   fogMode;
     37   /* GLint                   fogMode;
    4038    GLfloat                 fogDensity;
    4139    GLfloat                 fogStart;
    4240    GLfloat                 fogEnd;
    43     Vector                  colorVector;
     41    Vector                  colorVector;*/
    4442};
    4543
    4644
    47 #endif /* _FOG_EFFECT */
     45#endif  /* _FOG_EFFECT */
Note: See TracChangeset for help on using the changeset viewer.