Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 4353 was 4261, checked in by bensch, 20 years ago

orxonox/trunk: merged the levelLoader-branche back into the trunk, because it seems to be stable.
merged with command:
svn merge -r 4230:HEAD levelLoader ../trunk
no conflicts of any interesst

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