Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/effects/atmospheric_engine.h @ 8569

Last change on this file since 8569 was 7810, checked in by bensch, 19 years ago

orxonox/trunk: merged the Weather effects back here

File size: 961 bytes
RevLine 
[7379]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:
[7392]17    ~AtmosphericEngine();
[7379]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
[7392]22    void loadParams(const TiXmlElement* root);
[7379]23
[7514]24    void init();
[7379]25
[7392]26    void draw() const;
27    void tick(float dt);
[7379]28
[7392]29    // inline bool isActivated() const { return this->bActivated; }
[7379]30
[7381]31    void loadWeatherEffect(const TiXmlElement* root);
32    void loadSunEffect(const TiXmlElement* root);
[7379]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.