Last change
on this file since 10300 was
8495,
checked in by bensch, 18 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 | |
---|
11 | class TiXmlElement; |
---|
12 | |
---|
13 | //! A class that handles GraphicsEffects. The GraphicsEffectManager operates on this. |
---|
14 | class GraphicsEffect : public BaseObject { |
---|
15 | public: |
---|
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 | |
---|
34 | protected: |
---|
35 | bool bActivated; |
---|
36 | }; |
---|
37 | |
---|
38 | |
---|
39 | #endif /* _GRAPHICS_EFFECT */ |
---|
Note: See
TracBrowser
for help on using the repository browser.