Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5344 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Oct 10, 2005, 12:39:21 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: new Way to load and unload Text

Location:
trunk/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/resource_manager.cc

    r5335 r5344  
    3030#endif /* NO_TEXTURES */
    3131#ifndef NO_TEXT
    32 #include "text_engine.h"
     32#include "font.h"
     33#include "text.h" //!< @todo this should not be included here. -> make FONT independant of SIZE...
    3334#endif /* NO_TEXT */
    3435#ifndef NO_AUDIO
     
    359360              tmpResource->ttfSize = *(unsigned int*)param1;
    360361            else
    361               tmpResource->ttfSize = FONT_DEFAULT_SIZE;
     362              tmpResource->ttfSize = TEXT_DEFAULT_SIZE;
    362363
    363364          if(isFile(fullName))
     
    613614              if (param1 == NULL)
    614615                {
    615                   if (enumRes->ttfSize == FONT_DEFAULT_SIZE)
     616                  if (enumRes->ttfSize == TEXT_DEFAULT_SIZE)
    616617                    match = true;
    617618                }
  • trunk/src/util/track/track_manager.cc

    r5336 r5344  
    2424#include "stdincl.h"
    2525#include "list.h"
    26 #include "text_engine.h"
     26#include "text.h"
    2727#include "t_animation.h"
    2828
     
    380380  this->setBindSlave(this->trackNode);
    381381  // initializing the Text
    382   this->trackText = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_RENDER_DYNAMIC);
     382  this->trackText = new Text("fonts/earth.ttf", 30, TEXT_RENDER_DYNAMIC);
    383383  this->trackText->setAlignment(E2D_ALIGN_SCREEN_CENTER);
    384384  // initializing the Animation for the Text.
Note: See TracChangeset for help on using the changeset viewer.