/*! \file glmenu_imagescreen \brief class to display a image */ #ifndef _GLMENU_IMAGESCREEN_H #define _GLMENU_IMAGESCREEN_H #include "stdincl.h" class Texture; class GLMenuImageScreen : public BaseObject { public: GLMenuImageScreen (); ~GLMenuImageScreen (); void init (); void init (char* backImageName, float height, float width, float offsetX, float offsetY); void draw (); void setBackImageName (char* backImageName); void setPosition (float offsetX, float offsetY); void setSize (float height, float width); void setMaximum (int maxStep); int getMaximum (); void setValue (int currentValue); int getValue (); void step (); private: char* backImageName; //! the name of the file of the background image float height, width; //! hight and width of the image float offsetX, offsetY; //! offset of the image from left and up Texture* backTex; //! background texture int currentValue; //! the current count of step() calls fired yet int maxStep; //! total count of steps }; #endif /* _GLMENU_IMAGESCREEN_H */