Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6287 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_pushbutton.cc


Ignore:
Timestamp:
Dec 25, 2005, 5:32:21 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: some gui-work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/gui/gl_gui/glgui_pushbutton.cc

    r5421 r6287  
    4747  this->setClassID(CL_GLGUI_PUSHBUTTON, "GLGuiPushButton");
    4848//  this->label->setRelCoor2D(10, 10);
    49 
    50   this->backMat = new Material();
    51   this->backMat->setDiffuse(0, 0, 0);
    5249}
    5350
     
    5754void GLGuiPushButton::draw() const
    5855{
    59   this->backMat->select();
    60   glPushMatrix();
    61   glTranslatef(this->getAbsCoor2D().x, this->getAbsCoor2D().y, 0);
     56  this->startDraw();
     57
     58  GLGuiButton::draw();
     59
    6260  glBegin(GL_QUADS);
    6361
     
    6866
    6967  glEnd();
    70   glPopMatrix();
    7168
     69  this->endDraw();
    7270//   this->label->draw();
    7371//  printf("test");
Note: See TracChangeset for help on using the changeset viewer.