Line | |
---|
1 | /*! |
---|
2 | * @file heat_haze.h |
---|
3 | * A class to generate a heat haze effect |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _HEAT_HAZE_H |
---|
7 | #define _HEAT_HAZE_H |
---|
8 | |
---|
9 | #include "world_entity.h" |
---|
10 | #include "shader.h" |
---|
11 | |
---|
12 | //! A Class to generate a heat haze effect |
---|
13 | |
---|
14 | class HeatHaze : public WorldEntity |
---|
15 | { |
---|
16 | ObjectListDeclaration(HeatHaze); |
---|
17 | public: |
---|
18 | HeatHaze(const TiXmlElement* root = NULL); |
---|
19 | virtual ~HeatHaze(); |
---|
20 | |
---|
21 | virtual void loadParams(const TiXmlElement* root); |
---|
22 | void init(); |
---|
23 | |
---|
24 | virtual void postSpawn (); |
---|
25 | virtual void leftWorld (); |
---|
26 | |
---|
27 | |
---|
28 | virtual void draw() const; |
---|
29 | virtual void tick(float time); |
---|
30 | virtual void collidesWith (WorldEntity* entity, const Vector& location); |
---|
31 | |
---|
32 | private: |
---|
33 | Shader haze; |
---|
34 | |
---|
35 | }; |
---|
36 | |
---|
37 | #endif /* _HEAT_HAZE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.