| 
                Last change
                  on this file since 3576 was
                  3544,
                  checked in by bensch, 21 years ago
           | 
        
        
          | 
               
orxonox/trunk: now the delete-process is as inteded by c++ 
virtual ~ClassName extends deletion and deletes also the MasterClass 
 
           | 
        
        | 
            File size:
            1.2 KB
           | 
      
      
        
  | Rev | Line |   | 
|---|
| [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 |  | 
|---|
| [3543] | 10 | #include "base_object.h" | 
|---|
 | 11 |  | 
|---|
| [3394] | 12 | class Material; | 
|---|
| [3357] | 13 |  | 
|---|
 | 14 | class GLMenuImageScreen : public BaseObject { | 
|---|
 | 15 |  | 
|---|
| [3428] | 16 |  private: | 
|---|
 | 17 |   GLMenuImageScreen (); | 
|---|
 | 18 |  | 
|---|
| [3357] | 19 |  public: | 
|---|
| [3544] | 20 |   virtual ~GLMenuImageScreen (); | 
|---|
 | 21 |    | 
|---|
| [3367] | 22 |   static GLMenuImageScreen* getInstance(); | 
|---|
 | 23 |  | 
|---|
 | 24 |   static GLMenuImageScreen* singletonRef; | 
|---|
 | 25 |  | 
|---|
| [3357] | 26 |   void init (); | 
|---|
 | 27 |   void init (char* backImageName, float height, float width,  | 
|---|
 | 28 |              float offsetX, float offsetY); | 
|---|
 | 29 |  | 
|---|
 | 30 |   void draw (); | 
|---|
 | 31 |    | 
|---|
 | 32 |   void setBackImageName (char* backImageName); | 
|---|
| [3363] | 33 |   void setPosition (float offsetX, float offsetY); | 
|---|
 | 34 |   void setSize (float height, float width); | 
|---|
 | 35 |    | 
|---|
| [3368] | 36 |   void setMaximum (int maxValue); | 
|---|
| [3363] | 37 |   int getMaximum (); | 
|---|
 | 38 |   void setValue (int currentValue); | 
|---|
 | 39 |   int getValue (); | 
|---|
 | 40 |   void step (); | 
|---|
| [3357] | 41 |  | 
|---|
 | 42 |  private: | 
|---|
| [3394] | 43 |   char* backImageName;       //!< the name of the file of the background image | 
|---|
 | 44 |   float height, width;       //!< hight and width of the image | 
|---|
 | 45 |   float offsetX, offsetY;    //!< offset of the image from left and up | 
|---|
 | 46 |   Material* backMat;         //!< Background Material. | 
|---|
 | 47 |   int currentValue;          //!< the current count of step() calls fired yet | 
|---|
 | 48 |   int maxValue;              //!< total count of steps | 
|---|
| [3363] | 49 |  | 
|---|
| [3357] | 50 | }; | 
|---|
 | 51 |  | 
|---|
 | 52 | #endif /* _GLMENU_IMAGESCREEN_H */ | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.