Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/atmospheric_engine/src/lib/graphics/effects/lightening_effect.h @ 8053

Last change on this file since 8053 was 8050, checked in by hdavid, 19 years ago

branches/atmospheric_engine: basic lightening effect with billboard works

File size: 1.2 KB
Line 
1/**
2* @file lightening_effect.h
3*/
4
5#ifndef _LIGHTENING_EFFECT
6#define _LIGHTENING_EFFECT
7
8#include "vector.h"
9#include "vector2D.h"
10
11#include "weather_effect.h"
12
13#include "sound_buffer.h"
14#include "sound_source.h"
15
16
17class Billboard;
18
19class LighteningEffect : public WeatherEffect
20{
21        public:
22                LighteningEffect(const TiXmlElement* root = NULL);
23                virtual ~LighteningEffect();
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 tick(float dt);
33
34        private:
35    Billboard* billboard;
36
37    float flashFrequency;                   //!< frequency to activate itself
38    float flashRisingTime;                  //!< time to rise
39    float flashConstTime;                   //!< time to be drawn
40    float flashFallTime;                    //!< time to fall
41
42    float time;                             //!< time
43
44    //bool  bRender;
45    bool  bNewCoordinate;
46    //Material*      material;
47    //Vector         offset;
48    float width;
49    float height;
50
51    float seedX;
52    float seedZ;
53    float seedTime;
54
55    //OrxSound::SoundSource    soundSource;
56    //OrxSound::SoundBuffer*   thunderBuffer;
57
58};
59
60#endif  /* _LIGHTENING_EFFECT */
Note: See TracBrowser for help on using the repository browser.