Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/graphics/effects/graphics_effect.h @ 6776

Last change on this file since 6776 was 6776, checked in by patrick, 18 years ago

network: working on lenseflare

File size: 729 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
15{
16  public:
17    GraphicsEffect(const TiXmlElement* root = NULL);
18    virtual ~GraphicsEffect();
19
20    virtual void loadParams(const TiXmlElement* root);
21
22    virtual bool init();
23
24    virtual bool activate() = 0;
25    virtual bool deactivate() = 0;
26
27    virtual bool draw() const;
28
29    inline bool isActivated() const { return this->bActivated; }
30
31
32  protected:
33    bool              bActivated;
34};
35
36
37#endif /* _GRAPHICS_EFFECT */
Note: See TracBrowser for help on using the repository browser.