Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7062 in orxonox.OLD for trunk/src/lib/gui/gl_gui/glgui_widget.cc


Ignore:
Timestamp:
Feb 6, 2006, 9:55:04 PM (19 years ago)
Author:
bensch
Message:

hud

File:
1 edited

Legend:

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

    r6431 r7062  
    5454//  this->setParent2D((Element2D*)NULL);
    5555
    56   this->backMat.setDiffuse(.1, .5, .5);
    57   this->backMat.setTransparency(.9);
     56  this->backMat.setDiffuse(1.0, 1.0, 1.0);
    5857
    5958  this->frontModel = 0;
     
    118117
    119118  glBegin(GL_QUADS);
    120    glVertex2d(0, 0);
    121    glVertex2d(0, this->getSizeY2D());
    122    glVertex2d(this->getSizeX2D(), this->getSizeY2D());
    123    glVertex2d(this->getSizeX2D(), 0);
     119   glTexCoord2i(0,1); glVertex2d(0, 0);
     120   glTexCoord2i(0,0); glVertex2d(0, this->getSizeY2D());
     121   glTexCoord2i(1,0); glVertex2d(this->getSizeX2D(), this->getSizeY2D());
     122   glTexCoord2i(1,1); glVertex2d(this->getSizeX2D(), 0);
    124123  glEnd();
    125124}
Note: See TracChangeset for help on using the changeset viewer.