Changeset 7208 in orxonox.OLD for branches/std/src/lib/gui/gl_gui
- Timestamp:
- Mar 10, 2006, 1:56:40 AM (19 years ago)
- Location:
- branches/std/src/lib/gui/gl_gui/glmenu
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/std/src/lib/gui/gl_gui/glmenu/glmenu_imagescreen.cc
r7193 r7208 87 87 * @param backImageName name of the backgroun-image 88 88 */ 89 void GLMenuImageScreen::setBackgroundImage (const char*backImageName)89 void GLMenuImageScreen::setBackgroundImage (const std::string& backImageName) 90 90 { 91 91 this->backMat->setDiffuseMap(backImageName); … … 130 130 * @param barImage An image for the Bar 131 131 */ 132 void GLMenuImageScreen::setBarImage(const char*barImage)132 void GLMenuImageScreen::setBarImage(const std::string& barImage) 133 133 { 134 134 this->barMat->setDiffuseMap(barImage); -
branches/std/src/lib/gui/gl_gui/glmenu/glmenu_imagescreen.h
r6512 r7208 13 13 14 14 //! A class to display a loadScreen 15 class GLMenuImageScreen : public BaseObject { 15 class GLMenuImageScreen : public BaseObject 16 { 16 17 17 18 public: 18 19 GLMenuImageScreen (const TiXmlElement* root = NULL); 19 20 virtual void loadParams(const TiXmlElement* root); … … 22 23 void draw(); 23 24 24 void setBackgroundImage(const char*backImageName);25 void setBackgroundImage(const std::string& backImageName); 25 26 void setPosition(float offsetX, float offsetY); 26 27 void setScale (float scaleX, float scaleY); 27 28 void setPosScale(float offsetX, float offsetY, float scaleX, float scaleY); 28 29 29 void setBarImage(const char*barImage);30 void setBarImage(const std::string& barImage); 30 31 void setBarPosScale(float barX, float barY, float barW, float barH); 31 32 … … 39 40 40 41 41 42 private: 42 43 // background image 43 char*backImageName; //!< the name of the file of the background image44 std::string backImageName; //!< the name of the file of the background image 44 45 float offsetX; //!< X-offset of the the image from the left 45 46 float offsetY; //!< Y-offset of the image from the top
Note: See TracChangeset
for help on using the changeset viewer.