source:
orxonox.OLD/trunk/src/lib/graphics/effects/cloud_effect.h
@
8314
Last change on this file since 8314 was 8255, checked in by bensch, 19 years ago | |
---|---|
File size: 1.1 KB |
Rev | Line | |
---|---|---|
[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" |
14 | #include "glincl.h" | |
15 | ||
16 | #include "sglmodel.h" | |
17 | ||
18 | class Shader; | |
19 | class Material; | |
20 | class Vector; | |
21 | ||
[7679] | 22 | class CloudEffect : public WeatherEffect |
23 | { | |
24 | public: | |
25 | CloudEffect(const TiXmlElement* root = NULL); | |
26 | virtual ~CloudEffect(); | |
27 | ||
28 | virtual void loadParams(const TiXmlElement* root); | |
29 | ||
30 | virtual bool init(); | |
31 | ||
32 | virtual bool activate(); | |
33 | virtual bool deactivate(); | |
34 | ||
[8255] | 35 | inline void activateCloud() { this->activate(); } |
36 | inline void deactivateCloud() { this->deactivate(); } | |
37 | ||
[7768] | 38 | virtual void draw() const; |
[7679] | 39 | virtual void tick(float dt); |
40 | ||
[8255] | 41 | inline void setCloudOption(const std::string& option) { |
42 | if (option == "activate") this->cloudActivate = true; | |
43 | } | |
[7784] | 44 | |
[8255] | 45 | |
[7679] | 46 | private: |
[8255] | 47 | void initialize(char* fileName); |
[7768] | 48 | |
[8255] | 49 | bool cloudActivate; |
[7768] | 50 | |
[8255] | 51 | Material* cloudMaterial; // A Material for the Sphere. |
[7768] | 52 | |
[8255] | 53 | std::string cloudTexture; |
[7782] | 54 | |
[8255] | 55 | Sglmodel_sgl cloudModel; |
56 | Shader* cloudShader; | |
[7784] | 57 | |
[8255] | 58 | GLfloat cloudTint[4]; |
59 | GLfloat cloudScroll; | |
[7784] | 60 | |
[8255] | 61 | float time; |
[7784] | 62 | |
[7679] | 63 | }; |
64 | ||
65 | #endif /* _CLOUD_EFFECT */ |
Note: See TracBrowser
for help on using the repository browser.