Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/new_class_id/src/lib/graphics/effects/graphics_effect.h @ 9693

Last change on this file since 9693 was 9685, checked in by bensch, 18 years ago

adapted many classes to the new ClassID System, now comes the hard part… Scripting… then Network… wow this will be so bad :/

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