Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/nico/src/glmenu_imagescreen.h @ 3542

Last change on this file since 3542 was 3399, checked in by bensch, 20 years ago

orxonox/branches/nico: merged trunk into branches/nico
merged with command:
svn merge ../trunk/ nico/ -r 3238:HEAD
resolved conflict in favor of branches/nico.

File size: 1.2 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;
13class Material;
14
15class GLMenuImageScreen : public BaseObject {
16
17 public:
18  GLMenuImageScreen ();
19  ~GLMenuImageScreen ();
20
21  static GLMenuImageScreen* getInstance();
22
23  static GLMenuImageScreen* singletonRef;
24
25  void init ();
26  void init (char* backImageName, float height, float width, 
27             float offsetX, float offsetY);
28
29  void draw ();
30 
31  void setBackImageName (char* backImageName);
32  void setPosition (float offsetX, float offsetY);
33  void setSize (float height, float width);
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 height, width;       //!< hight and width of the image
44  float offsetX, offsetY;    //!< offset of the image from left and up
45  Material* backMat;         //!< Background Material.
46  int currentValue;          //!< the current count of step() calls fired yet
47  int maxValue;              //!< total count of steps
48
49};
50
51#endif /* _GLMENU_IMAGESCREEN_H */
Note: See TracBrowser for help on using the repository browser.