Changeset 4834 in orxonox.OLD for orxonox/trunk/src/lib/graphics/graphics_engine.cc
- Timestamp:
- Jul 11, 2005, 5:47:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/lib/graphics/graphics_engine.cc
r4833 r4834 325 325 glDisable(GL_CULL_FACE); 326 326 glDisable(GL_LIGHTING); // will be set back when leaving 2D-mode 327 glEnable(GL_TEXTURE_2D);328 329 /* This allows alpha blending of 2D textures with the scene */330 glEnable(GL_BLEND);331 glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);332 327 333 328 glViewport(0, 0, screen->w, screen->h); … … 351 346 void GraphicsEngine::leave2DMode() 352 347 { 348 glMatrixMode(GL_PROJECTION); 349 glPopMatrix(); 350 353 351 glMatrixMode(GL_MODELVIEW); 354 glPopMatrix();355 356 glMatrixMode(GL_PROJECTION);357 352 glPopMatrix(); 358 353 … … 444 439 this->geTextCFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_DYNAMIC, 0, 255, 0); 445 440 this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT); 446 this->geTextCFPS->setPosition(5, 5 00);441 this->geTextCFPS->setPosition(5, 5); 447 442 this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_DYNAMIC, 0, 255, 0); 448 443 this->geTextMaxFPS->setAlignment(TEXT_ALIGN_LEFT); 449 this->geTextMaxFPS->setPosition(5, 530);444 this->geTextMaxFPS->setPosition(5, 35); 450 445 this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 35, TEXT_DYNAMIC, 0, 255, 0); 451 446 this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT); 452 this->geTextMinFPS->setPosition(5, 560);447 this->geTextMinFPS->setPosition(5, 65); 453 448 #endif /* NO_TEXT */ 454 449 }
Note: See TracChangeset
for help on using the changeset viewer.