source:
orxonox.OLD/branches/camera/src/world_entities/blackscreen.h
@
10272
| Last change on this file since 10272 was 10254, checked in by gfilip, 19 years ago | |
|---|---|
| File size: 668 bytes | |
| Rev | Line | |
|---|---|---|
| [10207] | 1 | #ifndef _BLACKSCREEN_H |
| 2 | #define _BLACKSCREEN_H | |
| 3 | ||
| 4 | #include "world_entity.h" | |
| 5 | ||
| [10210] | 6 | |
| [10207] | 7 | class TiXmlElement; |
| 8 | class Material; | |
| 9 | ||
| [10210] | 10 | class blackscreen : public WorldEntity |
| [10207] | 11 | { |
| 12 | ObjectListDeclaration(blackscreen); | |
| 13 | ||
| 14 | private: | |
| [10212] | 15 | float i; |
| 16 | bool state; | |
| [10207] | 17 | Material* material; |
| [10254] | 18 | void fadeIn(); |
| 19 | void fadeOut(); | |
| 20 | float fadeSpeed; | |
| [10207] | 21 | |
| 22 | public: | |
| 23 | blackscreen (); | |
| 24 | blackscreen(const TiXmlElement* root); | |
| 25 | virtual ~blackscreen (); | |
| 26 | ||
| 27 | void init(); | |
| 28 | virtual void loadParams(const TiXmlElement* root); | |
| 29 | ||
| [10254] | 30 | void toggleFade (); |
| 31 | void changeFadeSpeed(float newSpeed); | |
| [10207] | 32 | virtual void tick (float time); |
| [10254] | 33 | |
| [10207] | 34 | virtual void draw() const; |
| 35 | ||
| 36 | }; | |
| 37 | ||
| 38 | #endif /* _BLACKSCREEN_H */ |
Note: See TracBrowser
for help on using the repository browser.










