Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/terrain.old/src/lib/graphics/effects/graphics_effect.h @ 10659

Last change on this file since 10659 was 8495, checked in by bensch, 19 years ago

merged the branche atmos back. no conflicts

File size: 770 bytes
Line 
1/**
2 * @file graphics_effect.h
3 *  abstract type of graphical effects
4 */
5
6#ifndef _GRAPHICS_EFFECT
7#define _GRAPHICS_EFFECT
8
9#include "base_object.h"
10
11class TiXmlElement;
12
13//! A class that handles GraphicsEffects. The GraphicsEffectManager operates on this.
14class GraphicsEffect : public BaseObject {
15public:
16    GraphicsEffect(const TiXmlElement* root = NULL);
17    virtual ~GraphicsEffect();
18
19    virtual void loadParams(const TiXmlElement* root);
20
21    virtual void init();
22
23    virtual void activate() = 0;
24    virtual void deactivate() = 0;
25
26    virtual void draw() const;
27    virtual void tick(float dt);
28
29    inline bool isActivated() const {
30        return this->bActivated;
31    }
32
33
34protected:
35    bool              bActivated;
36};
37
38
39#endif /* _GRAPHICS_EFFECT */
Note: See TracBrowser for help on using the repository browser.