Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5344 in orxonox.OLD for trunk/src/lib/graphics/graphics_engine.cc


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

orxonox/trunk: new Way to load and unload Text

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/graphics_engine.cc

    r5318 r5344  
    2727#include "ini_parser.h"
    2828#include "substring.h"
    29 
     29#include "text.h"
    3030
    3131using namespace std;
     
    564564if (this->geTextCFPS == NULL)
    565565{
    566   this->geTextCFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
     566  this->geTextCFPS = new Text("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
    567567  this->geTextCFPS->setName("curFPS");
    568568  this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT);
     
    571571if (this->geTextMaxFPS == NULL)
    572572{
    573       this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
     573      this->geTextMaxFPS = new Text("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
    574574      this->geTextMaxFPS->setName("MaxFPS");
    575575      this->geTextMaxFPS->setAlignment(TEXT_ALIGN_LEFT);
     
    578578if (this->geTextMinFPS == NULL)
    579579{
    580       this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
     580      this->geTextMinFPS = new Text("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
    581581      this->geTextMinFPS->setName("MinFPS");
    582582      this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT);
Note: See TracChangeset for help on using the changeset viewer.