Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/graphics/effects/cloud_effect.h @ 8697

Last change on this file since 8697 was 8495, checked in by bensch, 19 years ago

merged the branche atmos back. no conflicts

File size: 1.0 KB
RevLine 
[7679]1/**
2* @file cloud_effect.h
3*/
4
5#ifndef _CLOUD_EFFECT
6#define _CLOUD_EFFECT
7
8#include "weather_effect.h"
9
10#include "sound_buffer.h"
11#include "sound_source.h"
12
[8255]13#include "world_entity.h"
[8495]14#include "material.h"
15#include "shader.h"
[8255]16
[8495]17class CloudEffect : public WeatherEffect {
18public:
19    CloudEffect(const TiXmlElement* root = NULL);
20    virtual ~CloudEffect();
[8255]21
[8495]22    virtual void loadParams(const TiXmlElement* root);
[8255]23
[8495]24    virtual void init();
[7679]25
[8495]26    virtual void activate();
27    virtual void deactivate();
[7679]28
[8495]29    inline void activateCloud() {
30        this->activate();
31    }
32    inline void deactivateCloud() {
33        this->deactivate();
34    }
[7679]35
[8495]36    virtual void draw() const;
37    virtual void tick(float dt);
[7679]38
[8495]39    /*inline void setCloudOption(const std::string& option) {
40        if (option == "activate")
41    this->cloudActivate = true;
42}*/
[7679]43
[7784]44
[8495]45private:
46    //void initialize(char* fileName);
[8255]47
[8495]48    //bool        cloudActivate;
[7768]49
[8495]50    Material                 cloudMaterial;
51    Shader*                 shader;
[7679]52};
53
54#endif  /* _CLOUD_EFFECT */
Note: See TracBrowser for help on using the repository browser.