Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Aug 25, 2005, 2:07:12 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: optimized TextEngine, now the chars can also be copied fast by using a const char-pointer instead of copiing the whole text-array

Location:
trunk/src/util
Files:
2 edited

Legend:

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

    r5121 r5122  
    158158  if (this->inputLineText == NULL)
    159159    delete this->inputLineText;
    160   this->inputLineText = TextEngine::getInstance()->createText("fonts/Aniron_Bold.ttf", this->textSize, TEXT_DYNAMIC);
     160  this->inputLineText = TextEngine::getInstance()->createText("fonts/Aniron_Bold.ttf", this->textSize, TEXT_RENDER_DYNAMIC);
    161161  this->inputLineText->setColor(1, 0, 0);
    162162  this->inputLineText->setAlignment(TEXT_ALIGN_LEFT);
     
    184184  for (unsigned int i = 0; i < bufferDisplaySize; i++)
    185185  {
    186     this->bufferText[i] = TextEngine::getInstance()->createText("fonts/Aniron_Bold.ttf", this->textSize, TEXT_DYNAMIC);
     186    this->bufferText[i] = TextEngine::getInstance()->createText("fonts/Aniron_Bold.ttf", this->textSize, TEXT_RENDER_DYNAMIC);
    187187    this->bufferText[i]->setColor(1, 0, 0);
    188188    this->bufferText[i]->setAlignment(TEXT_ALIGN_LEFT);
     
    299299    this->bufferText[0] = lastText;
    300300
    301     this->bufferText[0]->setText(text);
     301    this->bufferText[0]->setText(text, true);
    302302  }
    303303}
  • trunk/src/util/track/track_manager.cc

    r5121 r5122  
    380380  this->setBindSlave(this->trackNode);
    381381  // initializing the Text
    382   this->trackText = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC);
     382  this->trackText = TextEngine::getInstance()->createText("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.