Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 1, 2005, 12:11:24 AM (19 years ago)
Author:
bensch
Message:

orxonox/branches/textEngine: now the Font is dynamical. See the fps :)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/textEngine/src/story_entities/world.cc

    r3701 r3707  
    203203      testFont = new FontSet();
    204204      testFont->buildFont("../data/pictures/font.tga");
    205       tmpFont = new GLFont("../data/fonts/refluxed.ttf");
     205      tmpFont = new GLFont("../data/fonts/dark_crystal.ttf");
    206206      this->glmis->step();
    207207      // initializing the TrackManager
     
    747747        {
    748748          float fps = 1000/dt;
    749           PRINTF(0)("fps = %f\n", fps);
     749
     750          // temporary, only for showing how fast the text-engine is
    750751          char tmpChar[20];
    751           sprintf(tmpChar, "fps: %d", rand());
     752          sprintf(tmpChar, "fps: %4.0f", fps);
    752753          tmpFont->setText(tmpChar);
    753754          tmpFont->createTexture();
Note: See TracChangeset for help on using the changeset viewer.