Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/trackManager/src/glmenu_imagescreen.h @ 3414

Last change on this file since 3414 was 3369, checked in by bensch, 20 years ago

orxonox/branches: added branche trackManager.

File size: 1.1 KB
Line 
1/*!
2    \file glmenu_imagescreen
3    \brief class to display a image
4*/
5
6
7#ifndef _GLMENU_IMAGESCREEN_H
8#define _GLMENU_IMAGESCREEN_H
9
10#include "stdincl.h"
11
12class Texture;
13
14class GLMenuImageScreen : public BaseObject {
15
16 public:
17  GLMenuImageScreen ();
18  ~GLMenuImageScreen ();
19
20  void init ();
21  void init (char* backImageName, float height, float width, 
22             float offsetX, float offsetY);
23
24  void draw ();
25 
26  void setBackImageName (char* backImageName);
27  void setPosition (float offsetX, float offsetY);
28  void setSize (float height, float width);
29 
30  void setMaximum (int maxStep);
31  int getMaximum ();
32  void setValue (int currentValue);
33  int getValue ();
34  void step ();
35
36 private:
37  char* backImageName;       //! the name of the file of the background image
38  float height, width;       //! hight and width of the image
39  float offsetX, offsetY;    //! offset of the image from left and up
40  Texture* backTex;          //! background texture
41  int currentValue;          //! the current count of step() calls fired yet
42  int maxStep;               //! total count of steps
43
44};
45
46#endif /* _GLMENU_IMAGESCREEN_H */
Note: See TracBrowser for help on using the repository browser.