Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4126 in orxonox.OLD


Ignore:
Timestamp:
May 9, 2005, 3:58:09 PM (19 years ago)
Author:
patrick
Message:

orxonox/branches/md2_loader: some minor changes in the graphics engine fps function

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  
    277277          if( unlikely(this->currentFPS < this->minFPS)) this->minFPS = this->currentFPS;
    278278         
    279           // temporary, only for showing how fast the text-engine is
    280279          char tmpChar1[20];
    281           sprintf(tmpChar1, "Current:  %5.0f", this->currentFPS);
     280          sprintf(tmpChar1, "Current:  %4.0f", this->currentFPS);
    282281          this->geTextCFPS->setText(tmpChar1);
    283282          char tmpChar2[20];
    284           sprintf(tmpChar2, "MAX: %4.0f", this->maxFPS);
     283          sprintf(tmpChar2, "Max:    %4.0f", this->maxFPS);
    285284          this->geTextMaxFPS->setText(tmpChar2);
    286285          char tmpChar3[20];
    287           sprintf(tmpChar3, "MIN: %4.0f", this->minFPS);
     286          sprintf(tmpChar3, "Min:    %4.0f", this->minFPS);
    288287          this->geTextMinFPS->setText(tmpChar3);
    289288        }
     
    294293        if( display)
    295294        {
    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);
    297296                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);
    300299                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);
    303302                this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT);
    304                 this->geTextMinFPS->setPosition(0, 560);       
     303                this->geTextMinFPS->setPosition(5, 560);       
    305304        }
    306305        this->bDisplayFPS = display;
  • orxonox/branches/md2_loader/src/lib/graphics/importer/md2Model.cc

    r4087 r4126  
    276276{}
    277277
     278
    278279/**
    279280        \brief This function cleans up our allocated memory and closes the file
Note: See TracChangeset for help on using the changeset viewer.