Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/particle_system/src/glmenu_imagescreen.h @ 3500

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

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

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;
13
14class GLMenuImageScreen : public BaseObject {
15
16 public:
17  GLMenuImageScreen ();
18  ~GLMenuImageScreen ();
19
20  static GLMenuImageScreen* getInstance();
21
22  static GLMenuImageScreen* singletonRef;
23
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);
31  void setPosition (float offsetX, float offsetY);
32  void setSize (float height, float width);
33 
34  void setMaximum (int maxValue);
35  int getMaximum ();
36  void setValue (int currentValue);
37  int getValue ();
38  void step ();
39
40 private:
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
46  int maxValue;               //! total count of steps
47
48};
49
50#endif /* _GLMENU_IMAGESCREEN_H */
Note: See TracBrowser for help on using the repository browser.