Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Oct 6, 2005, 8:31:23 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: nicer quit-modi
TextEngine is now deleted by GraphicsEngine
trying to fix errors in the Element2D deletion

File:
1 edited

Legend:

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

    r5266 r5285  
    5858  this->hwVersion = NULL;
    5959  this->hwExtensions = NULL;
     60
     61  // initialize the TextEngine
     62  TextEngine::getInstance();
    6063}
    6164
     
    8184
    8285  delete Render2D::getInstance();
     86  delete TextEngine::getInstance();
    8387
    8488  SDL_QuitSubSystem(SDL_INIT_VIDEO);
     
    557561{
    558562  this->geTextCFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
     563  this->geTextCFPS->setName("curFPS");
    559564  this->geTextCFPS->setAlignment(TEXT_ALIGN_LEFT);
    560565  this->geTextCFPS->setAbsCoor2D(5, 15);
     
    563568{
    564569      this->geTextMaxFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
     570      this->geTextMaxFPS->setName("MaxFPS");
    565571      this->geTextMaxFPS->setAlignment(TEXT_ALIGN_LEFT);
    566572      this->geTextMaxFPS->setAbsCoor2D(5, 40);
     
    569575{
    570576      this->geTextMinFPS = TextEngine::getInstance()->createText("fonts/arial_black.ttf", 15, TEXT_RENDER_DYNAMIC);
     577      this->geTextMinFPS->setName("MinFPS");
    571578      this->geTextMinFPS->setAlignment(TEXT_ALIGN_LEFT);
    572579      this->geTextMinFPS->setAbsCoor2D(5, 65);
Note: See TracChangeset for help on using the changeset viewer.