Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7505 in orxonox.OLD for branches/atmospheric_engine/src/lib


Ignore:
Timestamp:
May 3, 2006, 1:53:42 PM (19 years ago)
Author:
amaechler
Message:

branches/atmospheric_engine

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

Legend:

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

    r7504 r7505  
    3737    GLfloat                 volfogDensity;
    3838    GLfloat                 volfogStart;
    39     GLfloat                 fogEnd;
     39    GLfloat                 volfogEnd;
    4040    Vector                  colorVector;
    4141};
  • branches/atmospheric_engine/src/lib/graphics/effects/volfog_effect.h~

    r7504 r7505  
    11/**
    2  * @file fog_effect.h
     2 * @file volfog_effect.h
    33 */
    44
    5 #ifndef _FOG_EFFECT
    6 #define _FOG_EFFECT
     5#ifndef _VOLFOG_EFFECT
     6#define _VOLFOG_EFFECT
    77
    88#include "vector.h"
     
    1010#include "weather_effect.h"
    1111
    12 class FogEffect : public WeatherEffect
     12class VolFogEffect : public WeatherEffect
    1313{
    1414  public:
    15     FogEffect(const TiXmlElement* root = NULL);
    16     virtual ~FogEffect();
     15    VolFogEffect(const TiXmlElement* root = NULL);
     16    virtual ~VolFogEffect();
    1717
    1818    virtual void loadParams(const TiXmlElement* root);
     
    2323    virtual bool deactivate();
    2424
    25     inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); }
    26     inline void setFogDensity(float density) { this->fogDensity = density; }
    27     inline void setFogRange(float start, float end) { this->fogStart = start; this->fogEnd = end; }
    28     inline void setFogColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); }
     25    inline void setVolFogMode(const std::string& mode) { this->volfogMode = this->stringToVolFogMode(mode); }
     26    inline void setVolFogDensity(float density) { this->volfogDensity = density; }
     27    inline void setVolFogRange(float start, float end) { this->volfogStart = start; this->volfogEnd = end; }
     28    inline void setVolFogColor(float r, float g, float b) { this->colorVector = Vector(r, g, b); }
    2929
    3030
    3131  private:
    32     GLint stringToFogMode(const std::string& mode);
     32    GLint stringToVolFogMode(const std::string& mode);
    3333
    3434
    3535  private:
    36     GLint                   fogMode;
    37     GLfloat                 fogDensity;
    38     GLfloat                 fogStart;
     36    GLint                   volfogMode;
     37    GLfloat                 volfogDensity;
     38    GLfloat                 volfogStart;
    3939    GLfloat                 fogEnd;
    4040    Vector                  colorVector;
     
    4242
    4343
    44 #endif  /* _FOG_EFFECT */
     44#endif  /* _VOLFOG_EFFECT */
Note: See TracChangeset for help on using the changeset viewer.