Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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