Last change
on this file since 9135 was
8495,
checked in by bensch, 18 years ago
|
merged the branche atmos back. no conflicts
|
File size:
770 bytes
|
Rev | Line | |
---|
[6741] | 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. |
---|
[8495] | 14 | class GraphicsEffect : public BaseObject { |
---|
| 15 | public: |
---|
[6741] | 16 | GraphicsEffect(const TiXmlElement* root = NULL); |
---|
| 17 | virtual ~GraphicsEffect(); |
---|
| 18 | |
---|
| 19 | virtual void loadParams(const TiXmlElement* root); |
---|
| 20 | |
---|
[8495] | 21 | virtual void init(); |
---|
[6741] | 22 | |
---|
[8495] | 23 | virtual void activate() = 0; |
---|
| 24 | virtual void deactivate() = 0; |
---|
[6772] | 25 | |
---|
[6815] | 26 | virtual void draw() const; |
---|
| 27 | virtual void tick(float dt); |
---|
[6772] | 28 | |
---|
[8495] | 29 | inline bool isActivated() const { |
---|
| 30 | return this->bActivated; |
---|
| 31 | } |
---|
[6772] | 32 | |
---|
[6815] | 33 | |
---|
[8495] | 34 | protected: |
---|
[6772] | 35 | bool bActivated; |
---|
[6741] | 36 | }; |
---|
| 37 | |
---|
| 38 | |
---|
| 39 | #endif /* _GRAPHICS_EFFECT */ |
---|
Note: See
TracBrowser
for help on using the repository browser.