Line | |
---|
1 | /** |
---|
2 | * @file lense_flare.h |
---|
3 | * lense flare effect |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _LENSE_FLARE |
---|
7 | #define _LENSE_FLARE |
---|
8 | |
---|
9 | #include "graphics_effect.h" |
---|
10 | |
---|
11 | #include <list> |
---|
12 | |
---|
13 | |
---|
14 | class TiXmlElement; |
---|
15 | |
---|
16 | //! A class that handles LenseFlares. The LenseFlareManager operates on this. |
---|
17 | class LenseFlare : public GraphicsEffect |
---|
18 | { |
---|
19 | public: |
---|
20 | LenseFlare(const TiXmlElement* root = NULL); |
---|
21 | virtual ~LenseFlare(); |
---|
22 | |
---|
23 | virtual void loadParams(const TiXmlElement* root); |
---|
24 | |
---|
25 | virtual bool init(); |
---|
26 | |
---|
27 | virtual bool activate(); |
---|
28 | virtual bool deactivate(); |
---|
29 | |
---|
30 | virtual void draw() const; |
---|
31 | |
---|
32 | |
---|
33 | private: |
---|
34 | GLint charToFogMode(const char* mode); |
---|
35 | |
---|
36 | |
---|
37 | private: |
---|
38 | Light* lightSource; //!< reference to the sun (or primary light source) |
---|
39 | std::vector<Element2D*> flares; //!< the flares array |
---|
40 | }; |
---|
41 | |
---|
42 | |
---|
43 | #endif /* _LENSE_FLARE */ |
---|
Note: See
TracBrowser
for help on using the repository browser.