Changeset 4357 in orxonox.OLD for orxonox/trunk/src/glmenu
- Timestamp:
- May 28, 2005, 12:05:46 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/glmenu/glmenu_imagescreen.cc
r4320 r4357 259 259 backMat->select(); 260 260 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); 265 265 glEnd(); 266 266 … … 279 279 barMat->select(); 280 280 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); 285 285 glEnd(); 286 286
Note: See TracChangeset
for help on using the changeset viewer.