Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 7514 was 7514, checked in by hdavid, 18 years ago

branches/atmospheric_engine: AtmosphericEngine ticks and draws the different weather effects

File size: 961 bytes
Line 
1/*!
2 * @file atmospheric_engine.h
3 * 
4 */
5
6#ifndef _ATMOSPHERIC_ENGINE_H
7#define _ATMOSPHERIC_ENGINE_H
8
9#include "base_object.h"
10
11
12class TiXmlElement;
13
14class AtmosphericEngine : public BaseObject
15{
16  public:
17    ~AtmosphericEngine();
18
19    /** @returns a Pointer to the only object of this Class */
20    inline static AtmosphericEngine* getInstance() { if (!AtmosphericEngine::singletonRef) AtmosphericEngine::singletonRef = new AtmosphericEngine();  return AtmosphericEngine::singletonRef; };
21
22    void loadParams(const TiXmlElement* root);
23
24    void init();
25
26    void draw() const;
27    void tick(float dt);
28
29    // inline bool isActivated() const { return this->bActivated; }
30
31    void loadWeatherEffect(const TiXmlElement* root);
32    void loadSunEffect(const TiXmlElement* root);
33
34  private:
35
36    AtmosphericEngine();
37
38    static AtmosphericEngine*     singletonRef;       //!< Pointer to the only instance of this Class
39};
40
41
42#endif /* _ATMOSPHERIC_ENGINE */
Note: See TracBrowser for help on using the repository browser.