- Timestamp:
- Jan 7, 2005, 12:30:14 AM (20 years ago)
- Location:
- orxonox/branches/parenting/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/parenting/src/glmenu_imagescreen.cc
r3362 r3363 171 171 SDL_Delay(1000); 172 172 } 173 174 173 174 175 175 /** 176 176 \brief sets the background image name … … 197 197 void GLMenuImageScreen::setSize(float height, float width) 198 198 {} 199 200 201 /** 202 \brief set the maximum of countable steps 203 \param maximum of steps 204 */ 205 void GLMenuImageScreen::setMaximum(int maxStep) 206 { 207 this->maxStep = maxStep; 208 } 209 210 211 /** 212 \brief gets the maximum of countable steps 213 */ 214 int GLMenuImageScreen::getMaximum() 215 { 216 return this->maxStep; 217 } 218 219 220 /** 221 \brief set current value 222 \param current value 223 */ 224 void GLMenuImageScreen::setValue(int currentValue) 225 { 226 this->currentValue = currentValue; 227 this->draw(); 228 } 229 230 231 /** 232 \brief get the current value 233 */ 234 int GLMenuImageScreen::getValue() 235 { 236 return this->currentValue; 237 } 238 239 240 /** 241 \brief call this to trigger a progress event 242 243 this has to redraw the progress bar and the whole image 244 */ 245 void GLMenuImageScreen::step () 246 { 247 this->currentValue++; 248 } -
orxonox/branches/parenting/src/glmenu_imagescreen.h
r3358 r3363 25 25 26 26 void setBackImageName (char* backImageName); 27 void setPosition(float offsetX, float offsetY); 28 void setSize(float height, float width); 27 void setPosition (float offsetX, float offsetY); 28 void setSize (float height, float width); 29 30 void setMaximum (int maxStep); 31 int getMaximum (); 32 void setValue (int currentValue); 33 int getValue (); 34 void step (); 29 35 30 36 private: 31 char* backImageName; //! the name of the file of the background image 32 float height, width; 33 float offsetX, offsetY; 34 Texture* backTex; 35 37 char* backImageName; //! the name of the file of the background image 38 float height, width; //! hight and width of the image 39 float offsetX, offsetY; //! offset of the image from left and up 40 Texture* backTex; //! background texture 41 int currentValue; //! the current count of step() calls fired yet 42 int maxStep; //! total count of steps 43 36 44 }; 37 45
Note: See TracChangeset
for help on using the changeset viewer.