Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jan 26, 2006, 1:13:10 PM (19 years ago)
Author:
patrick
Message:

network: the fog effect working and loadable

File:
1 edited

Legend:

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

    r6741 r6768  
    1313### File Specific:
    1414   main-programmer: Patrick Boenzli
    15    co-programmer: ...
    1615*/
    1716
     
    2120#include "graphics_effect.h"
    2221
     22#include "graphics_engine.h"
    2323#include "load_param.h"
    2424
     
    3535GraphicsEffect::GraphicsEffect(const TiXmlElement* root)
    3636{
     37  this->bActivated = false;
     38
     39  this->bActivated = GraphicsEngine::getInstance()->loadGraphicsEffect(this);
    3740
    3841  if (root != NULL)
     
    4548 */
    4649GraphicsEffect::~GraphicsEffect()
    47 {}
     50{
     51  if( this->bActivated)
     52    GraphicsEngine::getInstance()->unloadGraphicsEffect(this);
     53}
    4854
    4955
Note: See TracChangeset for help on using the changeset viewer.