Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

branches/atmospheric_engine: added setClassID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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}
Note: See TracChangeset for help on using the changeset viewer.