Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 28, 2006, 11:10:19 AM (19 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine: added setClassID

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

Legend:

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

    r7392 r7416  
    3232AtmosphericEngine::AtmosphericEngine()
    3333{
    34   // this->setClassID(CL_ATMOSPHERIC_ENGINE, "AtmosphericEngine");
     34  this->setClassID(CL_ATMOSPHERIC_ENGINE, "AtmosphericEngine");
    3535  // this->bActivated = false;
    3636}
  • branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.cc

    r7392 r7416  
    3232FogEffect::FogEffect(const TiXmlElement* root)
    3333{
    34   //this->setClassID(CL_FOG_EFFECT, "FogEffect");
     34  this->setClassID(CL_FOG_EFFECT, "FogEffect");
    3535
    3636  this->fogMode = GL_LINEAR;
     
    5858
    5959  LoadParam(root, "fog-mode", this, FogEffect, setFogMode);
    60 
    6160  LoadParam(root, "fog-density", this, FogEffect, setFogDensity);
    62 
    6361  LoadParam(root, "fog-color", this, FogEffect, setFogColor);
    6462
    65   // LoadParam(root, "test", this, FogEffect, setTest);
    6663
    67 
    68 }
    69 
    70 void FogEffect::setTest(int test)
    71 {
    72   PRINTF(0)("\n\ntest: %i\n\n", test);
    7364}
    7465
     
    8273  PRINTF(0)( "Enabling Fog Effect, mode: %i, density: %f, start: %f, end: %f, color %f, %f, %f\n", this->fogMode, this->fogDensity,
    8374             this->fogStart, this->fogEnd, this->colorVector.x, this->colorVector.y, this->colorVector.z);
    84 
    85   /*PRINTF(0)( "Enabling Fog Effect, mode: %i, density: %f, start: %f, end: %f\n", this->fogMode, this->fogDensity,
    86              this->fogStart, this->fogEnd);*/
    8775
    8876  glEnable(GL_FOG);
     
    10795bool FogEffect::deactivate()
    10896{
     97  PRINTF(0)("Deactivating Fog Effect");
    10998        glDisable(GL_FOG);
    11099}
  • branches/atmospheric_engine/src/lib/graphics/effects/fog_effect.h

    r7392 r7416  
    2323    virtual bool deactivate();
    2424
    25 
    26     void setTest(int test);
    27 
    2825    inline void setFogMode(const std::string& mode) { this->fogMode = this->stringToFogMode(mode); }
    2926    inline void setFogDensity(float density) { this->fogDensity = density; }
  • branches/atmospheric_engine/src/lib/graphics/effects/sun_effect.cc

    r7383 r7416  
    3030SunEffect::SunEffect(const TiXmlElement* root)
    3131{
    32   //this->setClassID(CL_SUN_EFFECT, "SunEffect");
     32  this->setClassID(CL_SUN_EFFECT, "SunEffect");
    3333  this->bActivated = false;
    3434}
  • branches/atmospheric_engine/src/lib/graphics/effects/weather_effect.cc

    r7382 r7416  
    2828WeatherEffect::WeatherEffect(const TiXmlElement* root)
    2929{
    30   // this->setClassID(CL_WEATHER_EFFECT, "WeatherEffect");
     30  this->setClassID(CL_WEATHER_EFFECT, "WeatherEffect");
    3131  this->bActivated = false;
    3232}
Note: See TracChangeset for help on using the changeset viewer.