- Timestamp:
- May 9, 2005, 3:58:09 PM (20 years ago)
- Location:
- orxonox/branches/md2_loader/src/lib/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/lib/graphics/graphics_engine.cc
r4072 r4126 277 277 if( unlikely(this->currentFPS < this->minFPS)) this->minFPS = this->currentFPS; 278 278 279 // temporary, only for showing how fast the text-engine is280 279 char tmpChar1[20]; 281 sprintf(tmpChar1, "Current: % 5.0f", this->currentFPS);280 sprintf(tmpChar1, "Current: %4.0f", this->currentFPS); 282 281 this->geTextCFPS->setText(tmpChar1); 283 282 char tmpChar2[20]; 284 sprintf(tmpChar2, "M AX:%4.0f", this->maxFPS);283 sprintf(tmpChar2, "Max: %4.0f", this->maxFPS); 285 284 this->geTextMaxFPS->setText(tmpChar2); 286 285 char tmpChar3[20]; 287 sprintf(tmpChar3, "M IN:%4.0f", this->minFPS);286 sprintf(tmpChar3, "Min: %4.0f", this->minFPS); 288 287 this->geTextMinFPS->setText(tmpChar3); 289 288 } … … 294 293 if( display) 295 294 { 296 this->geTextCFPS = TextEngine::getInstance()->createText("fonts/ courier.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);295 this->geTextCFPS = TextEngine::getInstance()->createText("fonts/druid.ttf", 35, TEXT_DYNAMIC, 0, 255, 0); 297 296 this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT); 298 this->geTextCFPS->setPosition( 0, 500);299 this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/ quake.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);297 this->geTextCFPS->setPosition(5, 500); 298 this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/druid.ttf", 35, TEXT_DYNAMIC, 0, 255, 0); 300 299 this->geTextMaxFPS->setAlignment(TEXT_ALIGN_LEFT); 301 this->geTextMaxFPS->setPosition( 0, 530);302 this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/ quake.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);300 this->geTextMaxFPS->setPosition(5, 530); 301 this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/druid.ttf", 35, TEXT_DYNAMIC, 0, 255, 0); 303 302 this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT); 304 this->geTextMinFPS->setPosition( 0, 560);303 this->geTextMinFPS->setPosition(5, 560); 305 304 } 306 305 this->bDisplayFPS = display; -
orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.cc
r4087 r4126 276 276 {} 277 277 278 278 279 /** 279 280 \brief This function cleans up our allocated memory and closes the file
Note: See TracChangeset
for help on using the changeset viewer.