Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3776 in orxonox.OLD


Ignore:
Timestamp:
Apr 11, 2005, 4:30:59 PM (19 years ago)
Author:
bensch
Message:

orxonox/branches/textEngine: little patch, so now 'space' works too

Location:
orxonox/branches/textEngine/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/textEngine/src/lib/graphics/font/text_engine.cc

    r3775 r3776  
    426426{
    427427  /* interesting GLYPHS:
     428   *  32: space
    428429   *  33-47: Special Characters.
    429430   *  48-57: 0-9
     
    432433   *  97-122: a-z
    433434   */
    434   int numberOfGlyphs = 90;
    435 
    436   this->initGlyphs(33, numberOfGlyphs);
     435  int numberOfGlyphs = 91;
     436
     437  this->initGlyphs(32, numberOfGlyphs);
     438  this->glyphArray[32]->width = fontSize/3; //!< \todo find out the real size of a Space
    437439
    438440  int rectSize = this->findOptimalFastTextureSize();
     
    462464
    463465  // all the interessting Glyphs
    464   for (int i = 33; i <= 122; i++)
     466  for (int i = 32; i <= 122; i++)
    465467    {
    466468      SDL_Surface* glyphSurf = NULL;
     
    528530        }
    529531    }
     532
    530533  GLuint texture;
    531534  glGenTextures(1, &texture);
  • orxonox/branches/textEngine/src/story_entities/world.cc

    r3775 r3776  
    352352            this->glmis->step();
    353353
    354             this->testText = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC, 10, 100, 0);
    355             testText->setText("ORXONOX 123");
     354            this->testText = TextEngine::getInstance()->createText("fonts/earth.ttf", 30, TEXT_DYNAMIC, 0, 255, 0);
     355            testText->setText("TEXT  rocks");
    356356            testText->setBindNode(tn);
    357357
Note: See TracChangeset for help on using the changeset viewer.