Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/scrolling_screen.h @ 10453

Last change on this file since 10453 was 10453, checked in by patrick, 17 years ago

scrolling screen prototype

File size: 1015 bytes
Line 
1#ifndef _SCROLLING_SCREEN_H
2#define _SCROLLING_SCREEN_H
3
4#include "world_entity.h"
5
6
7class TiXmlElement;
8class Material;
9
10class ScrollingScreen : public WorldEntity
11{
12  ObjectListDeclaration(ScrollingScreen);
13
14
15
16public:
17  ScrollingScreen();
18  ScrollingScreen(const TiXmlElement* root);
19  virtual ~ScrollingScreen();
20
21  void init();
22  virtual void loadParams(const TiXmlElement* root);
23
24  void fadeIn(float speed);
25  void fadeOut(float speed);
26
27  void setSpeed(float speed) { this->scrollingSpeed = speed; }
28  void setViewHeight(float height) { this->viewHeight = height; }
29  void setSize(float xSize, float ySize) { this->xSize = xSize; this->ySize = ySize; }
30
31  virtual void tick (float time);
32
33  virtual void draw() const;
34
35private:
36  Material*       material;
37  bool            isTransparent;
38  float           transparency;
39  float           fadeingSpeed;
40
41  float           scrollingSpeed;
42  float           viewHeight;
43
44  float           xSize;
45  float           ySize;
46
47
48};
49
50#endif /* _SCROLLING_SCREEN_H */
Note: See TracBrowser for help on using the repository browser.