Changeset 7873 in orxonox.OLD for branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.cc
- Timestamp:
- May 26, 2006, 2:40:44 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/gui/src/lib/gui/gl_gui/glgui_pushbutton.cc
r7779 r7873 25 25 26 26 /** 27 * standard constructor 28 */ 29 GLGuiPushButton::GLGuiPushButton () 27 * @brief standard constructor 28 */ 29 GLGuiPushButton::GLGuiPushButton (const std::string& label) 30 :GLGuiButton(label) 30 31 { 31 32 this->init(); … … 34 35 35 36 /** 36 * standard deconstructor37 * @brief standard deconstructor 37 38 */ 38 39 GLGuiPushButton::~GLGuiPushButton() … … 47 48 this->setClassID(CL_GLGUI_PUSHBUTTON, "GLGuiPushButton"); 48 49 this->frontMat.setDiffuse(1,0,0); 49 // this->label->setRelCoor2D(10, 10);50 50 } 51 51 … … 56 56 { 57 57 this->startDraw(); 58 59 // GLGuiButton::draw(); 58 GLGuiButton::draw(); 60 59 61 60 this->frontMat.select(); 62 61 glBegin(GL_QUADS); 63 62 64 glVertex2d( 0,0);65 glVertex2d( 0, this->getSizeY2D());66 glVertex2d(this->getSizeX2D() , this->getSizeY2D());67 glVertex2d(this->getSizeX2D() ,0);63 glVertex2d(1, 1); 64 glVertex2d(1, this->getSizeY2D() -1); 65 glVertex2d(this->getSizeX2D() -1, this->getSizeY2D()-1); 66 glVertex2d(this->getSizeX2D()-1,1); 68 67 69 68 glEnd();
Note: See TracChangeset
for help on using the changeset viewer.