|
Last change
on this file since 8768 was
8495,
checked in by bensch, 19 years ago
|
|
merged the branche atmos back. no conflicts
|
|
File size:
1.0 KB
|
| Line | |
|---|
| 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 | |
|---|
| 13 | #include "world_entity.h" |
|---|
| 14 | #include "material.h" |
|---|
| 15 | #include "shader.h" |
|---|
| 16 | |
|---|
| 17 | class CloudEffect : public WeatherEffect { |
|---|
| 18 | public: |
|---|
| 19 | CloudEffect(const TiXmlElement* root = NULL); |
|---|
| 20 | virtual ~CloudEffect(); |
|---|
| 21 | |
|---|
| 22 | virtual void loadParams(const TiXmlElement* root); |
|---|
| 23 | |
|---|
| 24 | virtual void init(); |
|---|
| 25 | |
|---|
| 26 | virtual void activate(); |
|---|
| 27 | virtual void deactivate(); |
|---|
| 28 | |
|---|
| 29 | inline void activateCloud() { |
|---|
| 30 | this->activate(); |
|---|
| 31 | } |
|---|
| 32 | inline void deactivateCloud() { |
|---|
| 33 | this->deactivate(); |
|---|
| 34 | } |
|---|
| 35 | |
|---|
| 36 | virtual void draw() const; |
|---|
| 37 | virtual void tick(float dt); |
|---|
| 38 | |
|---|
| 39 | /*inline void setCloudOption(const std::string& option) { |
|---|
| 40 | if (option == "activate") |
|---|
| 41 | this->cloudActivate = true; |
|---|
| 42 | }*/ |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | private: |
|---|
| 46 | //void initialize(char* fileName); |
|---|
| 47 | |
|---|
| 48 | //bool cloudActivate; |
|---|
| 49 | |
|---|
| 50 | Material cloudMaterial; |
|---|
| 51 | Shader* shader; |
|---|
| 52 | }; |
|---|
| 53 | |
|---|
| 54 | #endif /* _CLOUD_EFFECT */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.