Changeset 5285 in orxonox.OLD for trunk/src/lib/graphics/graphics_engine.cc
- Timestamp:
- Oct 6, 2005, 8:31:23 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/graphics_engine.cc
r5266 r5285 58 58 this->hwVersion = NULL; 59 59 this->hwExtensions = NULL; 60 61 // initialize the TextEngine 62 TextEngine::getInstance(); 60 63 } 61 64 … … 81 84 82 85 delete Render2D::getInstance(); 86 delete TextEngine::getInstance(); 83 87 84 88 SDL_QuitSubSystem(SDL_INIT_VIDEO); … … 557 561 { 558 562 this->geTextCFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC); 563 this->geTextCFPS->setName("curFPS"); 559 564 this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT); 560 565 this->geTextCFPS->setAbsCoor2D(5, 15); … … 563 568 { 564 569 this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC); 570 this->geTextMaxFPS->setName("MaxFPS"); 565 571 this->geTextMaxFPS->setAlignment(TEXT_ALIGN_LEFT); 566 572 this->geTextMaxFPS->setAbsCoor2D(5, 40); … … 569 575 { 570 576 this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC); 577 this->geTextMinFPS->setName("MinFPS"); 571 578 this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT); 572 579 this->geTextMinFPS->setAbsCoor2D(5, 65);
Note: See TracChangeset
for help on using the changeset viewer.