Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7073 in orxonox.OLD for trunk/src


Ignore:
Timestamp:
Feb 7, 2006, 3:10:30 PM (19 years ago)
Author:
bensch
Message:

bar gets rendered correctly

File:
1 edited

Legend:

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

    r7062 r7073  
    6666  glBegin(GL_QUADS);
    6767
    68   glTexCoord2i(0,0);
     68  glTexCoord2f(0,0);
    6969  glVertex2f(3.0, 3.0);
    70   glTexCoord2i(0,1);
     70  glTexCoord2f(0, value/maximum);
    7171  glVertex2f(3.0, (this->getSizeY2D()-3.0)* (value/maximum));
    72   glTexCoord2i(1,1);
     72  glTexCoord2f(1, value/maximum);
    7373  glVertex2f(this->getSizeX2D()-3.0, (this->getSizeY2D()-3.0) * (value/maximum));
    74   glTexCoord2i(1,0);
     74  glTexCoord2f(1,0);
    7575  glVertex2f(this->getSizeX2D()-3.0, 3.0);
    7676
Note: See TracChangeset for help on using the changeset viewer.