Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3707 in orxonox.OLD for orxonox/branches/textEngine/src


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 :)

Location:
orxonox/branches/textEngine/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/textEngine/src/lib/graphics/font/glfont.h

    r3701 r3707  
    1212
    1313/* some default values */
    14 #define FONT_DEFAULT_SIZE       18                   //!< default size of the Text
     14#define FONT_DEFAULT_SIZE       50                   //!< default size of the Text
    1515#define FONT_DEFAULT_TEXT       "orxonox 1234567890" //!< some default text to display
    1616#define FONT_DEFAULT_COLOR_R    256                  //!< the default red part (color) of the text
  • 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.