Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4357 in orxonox.OLD for orxonox/trunk/src/glmenu


Ignore:
Timestamp:
May 28, 2005, 12:05:46 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: now Textures are maped as they should
before this textures where switched upside-down, now this is done in the corresponding model's textureCoordinate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/glmenu/glmenu_imagescreen.cc

    r4320 r4357  
    259259  backMat->select();
    260260  glBegin(GL_TRIANGLE_STRIP);
    261   glTexCoord2i(0, 0); glVertex2i(offsetX, offsetY + imageHeight);
    262   glTexCoord2i(1, 0); glVertex2i(offsetX +imageWidth, offsetY + imageHeight);
    263   glTexCoord2i(0, 1); glVertex2i(offsetX, offsetY);
    264   glTexCoord2i(1, 1); glVertex2i(offsetX + imageWidth, offsetY);
     261  glTexCoord2i(0, 1); glVertex2i(offsetX, offsetY + imageHeight);
     262  glTexCoord2i(1, 1); glVertex2i(offsetX +imageWidth, offsetY + imageHeight);
     263  glTexCoord2i(0, 0); glVertex2i(offsetX, offsetY);
     264  glTexCoord2i(1, 0); glVertex2i(offsetX + imageWidth, offsetY);
    265265  glEnd();
    266266 
     
    279279  barMat->select();
    280280  glBegin(GL_TRIANGLE_STRIP);
    281   glTexCoord2f(0, 0); glVertex2i(barX, barY + barH);
    282   glTexCoord2f(val, 0); glVertex2i(barX + (int)(val * this->barW * (float)screenWidth), barY + barH);
    283   glTexCoord2f(0, 1); glVertex2i(barX, barY);
    284   glTexCoord2f(val, 1); glVertex2i(barX + (int)(val * this->barW * (float)screenWidth), barY);
     281  glTexCoord2f(0,   1); glVertex2i(barX, barY + barH);
     282  glTexCoord2f(val, 1); glVertex2i(barX + (int)(val * this->barW * (float)screenWidth), barY + barH);
     283  glTexCoord2f(0,   0); glVertex2i(barX, barY);
     284  glTexCoord2f(val, 0); glVertex2i(barX + (int)(val * this->barW * (float)screenWidth), barY);
    285285  glEnd();
    286286
Note: See TracChangeset for help on using the changeset viewer.