|
Last change
on this file since 3543 was
3543,
checked in by bensch, 21 years ago
|
|
orxonox/trunk: some more classes now destroy themselves via virtual-destructors and call to predecessing destroy-function
also made
#include "stdincl.h" out of unnecessary h-files, so we got faster compile time.
|
|
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: |
|---|
| 20 | ~GLMenuImageScreen (); |
|---|
| [3543] | 21 | void destroy(void); |
|---|
| [3357] | 22 | |
|---|
| [3367] | 23 | static GLMenuImageScreen* getInstance(); |
|---|
| 24 | |
|---|
| 25 | static GLMenuImageScreen* singletonRef; |
|---|
| 26 | |
|---|
| [3357] | 27 | void init (); |
|---|
| 28 | void init (char* backImageName, float height, float width, |
|---|
| 29 | float offsetX, float offsetY); |
|---|
| 30 | |
|---|
| 31 | void draw (); |
|---|
| 32 | |
|---|
| 33 | void setBackImageName (char* backImageName); |
|---|
| [3363] | 34 | void setPosition (float offsetX, float offsetY); |
|---|
| 35 | void setSize (float height, float width); |
|---|
| 36 | |
|---|
| [3368] | 37 | void setMaximum (int maxValue); |
|---|
| [3363] | 38 | int getMaximum (); |
|---|
| 39 | void setValue (int currentValue); |
|---|
| 40 | int getValue (); |
|---|
| 41 | void step (); |
|---|
| [3357] | 42 | |
|---|
| 43 | private: |
|---|
| [3394] | 44 | char* backImageName; //!< the name of the file of the background image |
|---|
| 45 | float height, width; //!< hight and width of the image |
|---|
| 46 | float offsetX, offsetY; //!< offset of the image from left and up |
|---|
| 47 | Material* backMat; //!< Background Material. |
|---|
| 48 | int currentValue; //!< the current count of step() calls fired yet |
|---|
| 49 | int maxValue; //!< total count of steps |
|---|
| [3363] | 50 | |
|---|
| [3357] | 51 | }; |
|---|
| 52 | |
|---|
| 53 | #endif /* _GLMENU_IMAGESCREEN_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.