Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/camera/src/world_entities/blackscreen.h @ 10338

Last change on this file since 10338 was 10338, checked in by gfilip, 17 years ago

so many updates

File size: 705 bytes
Line 
1#ifndef _BLACKSCREEN_H
2#define _BLACKSCREEN_H
3
4#include "world_entity.h"
5
6
7class TiXmlElement;
8class Material;
9
10class blackscreen : public WorldEntity
11{
12    ObjectListDeclaration(blackscreen);
13
14  private:
15    float i;
16    bool state;
17    Material*       material;
18    void fadeIn();
19    void fadeOut();
20    float fadeSpeed;
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
30    void toggleFade();
31    void changeFadeSpeed(float newSpeed);
32    bool isBlack();
33    bool isTrans();
34    virtual void tick (float time);
35
36    virtual void draw() const;
37
38};
39
40#endif /* _BLACKSCREEN_H */
Note: See TracBrowser for help on using the repository browser.