Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

network: lenseflare concepts

File size: 984 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 Billboard;
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<Billboard*>  flares;             //!< the flares array
44
45    Vector*                  flareVector;        //!< the axis to draw the flares on
46};
47
48
49#endif /* _LENSE_FLARE */
Note: See TracBrowser for help on using the repository browser.