Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 31, 2006, 1:16:43 PM (19 years ago)
Author:
hdavid
Message:

branches/atmospheric_engine: activating/deactivating fogEffect in the oxw-file works,default: deactivate

File:
1 edited

Legend:

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

    r7810 r8023  
    2020#include "glincl.h"
    2121
    22 /*#include "shell_command.h"
    23 SHELL_COMMAND(activateFog, FogEffect, FogEffect::activate)
    24         ->setAlias("aFog");
    25 SHELL_COMMAND(deactivateFog, FogEffect, FogEffect::deactivate)
    26         ->setAlias("dFog");*/
     22#include "shell_command.h"
     23
     24SHELL_COMMAND(activate, FogEffect, activateFog);
     25SHELL_COMMAND(deactivate, FogEffect, deactivateFog);
    2726
    2827using namespace std;
     
    3938                this->loadParams(root);
    4039
    41         this->activate();
     40  if( this->fogActivate )
     41         this->activate();
    4242}
    4343
     
    5757        LoadParam(root, "range", this, FogEffect, setFogRange);
    5858        LoadParam(root, "color", this, FogEffect, setFogColor);
     59  LoadParam(root, "option", this, FogEffect, setFogOption);
    5960}
    6061
     
    6263{
    6364        //default values
     65  this->fogActivate = false;
    6466        this->fogMode = GL_EXP2;
    6567        this->fogDensity = 0.001;
Note: See TracChangeset for help on using the changeset viewer.