- Timestamp:
- May 7, 2005, 3:01:10 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/glmenu/glmenu_imagescreen.cc
r4099 r4100 57 57 this->setPosition(0,0); 58 58 this->setScale(1,1); 59 this->setBarPosScale( . 55, .7, .3, .15);59 this->setBarPosScale( .6, .75, .3, .1); 60 60 // End of Background image code. 61 61 } … … 200 200 if( val > barW) 201 201 val = barW; 202 203 printf(":::::::::::::::::::::%d %d %d %d %d\n", screenHeight, barY, barW, barH, val);204 202 205 203 GraphicsEngine::enter2DMode(); … … 214 212 glEnd(); 215 213 214 glDisable(GL_TEXTURE_2D); 215 /* draw white border */ 216 glBegin(GL_LINE_LOOP); 217 glColor3f(1.0, 1.0, 1.0); 218 glVertex2i(barX - 2, barY - 2); 219 glVertex2i(barX + barW + 2, barY - 2); 220 glVertex2i(barX + barW + 2, barY + barH + 2); 221 glVertex2i(barX - 2, barY + barH + 2); 222 glColor3f(1.0, 1.0, 1.0); 223 glEnd(); 216 224 217 225 /* draw the progress bar */ 218 226 barMat->select(); 219 227 glBegin(GL_TRIANGLE_STRIP); 220 glColor3f(0.96, 0.84, 0.34);221 228 glTexCoord2i(0, 0); glVertex2i(barX, barY + barH); 222 229 glTexCoord2i(1, 0); glVertex2i(barX + val, barY + barH); … … 245 252 glEnd(); 246 253 247 /* draw white border /248 glBegin(GL_QUADS);249 glColor3f(1.0, 1.0, 1.0);250 glVertex2i(barX-2, barY-2);251 glVertex2i(barX + barWidth +2, barY-2);252 glVertex2i(barX + barWidth+2, barY + barHeight+2);253 glVertex2i(barX - 2, barY + barHeight +2);254 glColor3f(1.0, 1.0, 1.0);255 glEnd();256 254 */ 257 255
Note: See TracChangeset
for help on using the changeset viewer.