| Last change
                  on this file since 3419 was
                  3394,
                  checked in by bensch, 21 years ago | 
        
          | 
orxonox/trunk: now the loadscreen uses material instead of Textures.
 | 
        | 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 |  | 
|---|
| 12 | class Texture; | 
|---|
| 13 | class Material; | 
|---|
| 14 |  | 
|---|
| 15 | class 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.