Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3512 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
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
10#include "stdincl.h"
11
[3358]12class Texture;
[3394]13class Material;
[3357]14
15class GLMenuImageScreen : public BaseObject {
16
17 public:
18  GLMenuImageScreen ();
19  ~GLMenuImageScreen ();
20
[3367]21  static GLMenuImageScreen* getInstance();
22
23  static GLMenuImageScreen* singletonRef;
24
[3357]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);
[3363]32  void setPosition (float offsetX, float offsetY);
33  void setSize (float height, float width);
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
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
[3363]48
[3357]49};
50
51#endif /* _GLMENU_IMAGESCREEN_H */
Note: See TracBrowser for help on using the repository browser.