source:
orxonox.OLD/trunk/src/world_entities/tools/blackscreen.h
@
10687
Last change on this file since 10687 was 10618, checked in by bknecht, 18 years ago | |
---|---|
File size: 732 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 | ||
[10342] | 10 | class BlackScreen : public WorldEntity |
[10207] | 11 | { |
[10342] | 12 | ObjectListDeclaration(BlackScreen); |
[10207] | 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: | |
[10342] | 23 | BlackScreen(); |
24 | BlackScreen(const TiXmlElement* root); | |
25 | virtual ~BlackScreen(); | |
[10207] | 26 | |
27 | void init(); | |
28 | virtual void loadParams(const TiXmlElement* root); | |
29 | ||
[10330] | 30 | void toggleFade(); |
[10424] | 31 | void initFadeBlack(); |
[10254] | 32 | void changeFadeSpeed(float newSpeed); |
[10338] | 33 | bool isBlack(); |
34 | bool isTrans(); | |
[10207] | 35 | virtual void tick (float time); |
[10254] | 36 | |
[10207] | 37 | virtual void draw() const; |
38 | ||
[10403] | 39 | |
[10207] | 40 | }; |
41 | ||
42 | #endif /* _BLACKSCREEN_H */ |
Note: See TracBrowser
for help on using the repository browser.