Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/graphics/effects/lense_flare.h @ 6779

Last change on this file since 6779 was 6779, checked in by patrick, 18 years ago

network: adding a billboard

File size: 898 bytes
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 <vector>
12
13
14class TiXmlElement;
15class Light;
16class Element2D;
17
18//! A class that handles LenseFlares. The LenseFlareManager operates on this.
19class LenseFlare : public GraphicsEffect
20{
21  public:
22    LenseFlare(const TiXmlElement* root = NULL);
23    virtual ~LenseFlare();
24
25    virtual void loadParams(const TiXmlElement* root);
26
27    virtual bool init();
28
29    virtual bool activate();
30    virtual bool deactivate();
31
32    virtual void draw() const;
33
34    void addFlare(const char* textureName);
35
36
37  private:
38    GLint charToFogMode(const char* mode);
39
40
41  private:
42    Light*                   lightSource;        //!< reference to the sun (or primary light source)
43    std::vector<Element2D*>  flares;             //!< the flares array
44};
45
46
47#endif /* _LENSE_FLARE */
Note: See TracBrowser for help on using the repository browser.