Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3707 in orxonox.OLD


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
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/textEngine/config.h.in

    r3702 r3707  
    5858/* Define to 1 if you have the <SDL_image.h> header file. */
    5959#undef HAVE_SDL_IMAGE_H
    60 
    61 /* Define to 1 if you have the <SDL/SDL.h> header file. */
    62 #undef HAVE_SDL_SDL_H
    6360
    6461/* Define to 1 if you have the <SDL_ttf.h> header file. */
  • orxonox/branches/textEngine/configure

    r3702 r3707  
    41324132echo "mingw-WINDOWS detected"
    41334133
     4134CPPFLAGS="-I/usr/include/SDL -I/mingw/include/SDL"
     4135
    41344136    mingw="yes"
    41354137    MSBITFIELDS="-mms-bitfields"
     
    47384740# checking for SDL-headers
    47394741
    4740 for ac_header in SDL/SDL.h
     4742for ac_header in SDL.h
    47414743do
    47424744as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  • 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.