Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/glmenu/glmenu_imagescreen.h @ 4099

Last change on this file since 4099 was 4099, checked in by bensch, 19 years ago

orxonox/trunk: glmis-refitted

File size: 1.3 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 "base_object.h"
11
12class Material;
13
14class GLMenuImageScreen : public BaseObject {
15
16 private:
17
18 public:
19  GLMenuImageScreen ();
20  virtual ~GLMenuImageScreen ();
21
22  void init ();
23
24  void draw ();
25 
26  void setBackgroundImage(const char* backImageName);
27  void setPosition(float offsetX, float offsetY);
28  void setScale (float scaleX, float scaleY);
29
30  void setBarImage(const char* barImage);
31  void setBarPosScale(float barX, float barY, float barW, float barH);
32
33  void setMaximum (int maxValue);
34  int getMaximum ();
35  void setValue (int currentValue);
36  int getValue ();
37  void step ();
38
39 private:
40  char* backImageName;       //!< the name of the file of the background image
41  float scaleX, scaleY;      //!< hight and width of the image
42  float offsetX, offsetY;    //!< offset of the image from left and up
43  Material* backMat;         //!< Background Material.
44  float barX, barY, barW, barH; //!< Position and Scale of the bar.
45  Material* barMat;          //!< A Material for the Loading-Bar
46
47  /* progress bar values */
48  int currentValue;          //!< the current count of step() calls fired yet
49  int maxValue;              //!< total count of steps
50
51};
52
53#endif /* _GLMENU_IMAGESCREEN_H */
Note: See TracBrowser for help on using the repository browser.