Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/glmenu_imagescreen.h @ 3390

Last change on this file since 3390 was 3368, checked in by patrick, 20 years ago

orxonox/trunk: finished implementing loadscreen. looks quite fancy… enjoy :))

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;
[3357]13
14class GLMenuImageScreen : public BaseObject {
15
16 public:
17  GLMenuImageScreen ();
18  ~GLMenuImageScreen ();
19
[3367]20  static GLMenuImageScreen* getInstance();
21
22  static GLMenuImageScreen* singletonRef;
23
[3357]24  void init ();
25  void init (char* backImageName, float height, float width, 
26             float offsetX, float offsetY);
27
28  void draw ();
29 
30  void setBackImageName (char* backImageName);
[3363]31  void setPosition (float offsetX, float offsetY);
32  void setSize (float height, float width);
33 
[3368]34  void setMaximum (int maxValue);
[3363]35  int getMaximum ();
36  void setValue (int currentValue);
37  int getValue ();
38  void step ();
[3357]39
40 private:
[3363]41  char* backImageName;       //! the name of the file of the background image
42  float height, width;       //! hight and width of the image
43  float offsetX, offsetY;    //! offset of the image from left and up
44  Texture* backTex;          //! background texture
45  int currentValue;          //! the current count of step() calls fired yet
[3368]46  int maxValue;               //! total count of steps
[3363]47
[3357]48};
49
50#endif /* _GLMENU_IMAGESCREEN_H */
Note: See TracBrowser for help on using the repository browser.