Changeset 6287 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_pushbutton.cc
- Timestamp:
- Dec 25, 2005, 5:32:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/gui/gl_gui/glgui_pushbutton.cc
r5421 r6287 47 47 this->setClassID(CL_GLGUI_PUSHBUTTON, "GLGuiPushButton"); 48 48 // this->label->setRelCoor2D(10, 10); 49 50 this->backMat = new Material();51 this->backMat->setDiffuse(0, 0, 0);52 49 } 53 50 … … 57 54 void GLGuiPushButton::draw() const 58 55 { 59 this->backMat->select(); 60 glPushMatrix(); 61 glTranslatef(this->getAbsCoor2D().x, this->getAbsCoor2D().y, 0); 56 this->startDraw(); 57 58 GLGuiButton::draw(); 59 62 60 glBegin(GL_QUADS); 63 61 … … 68 66 69 67 glEnd(); 70 glPopMatrix();71 68 69 this->endDraw(); 72 70 // this->label->draw(); 73 71 // printf("test");
Note: See TracChangeset
for help on using the changeset viewer.