Changeset 3776 in orxonox.OLD for orxonox/branches
- Timestamp:
- Apr 11, 2005, 4:30:59 PM (20 years ago)
- Location:
- orxonox/branches/textEngine/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/textEngine/src/lib/graphics/font/text_engine.cc
r3775 r3776 426 426 { 427 427 /* interesting GLYPHS: 428 * 32: space 428 429 * 33-47: Special Characters. 429 430 * 48-57: 0-9 … … 432 433 * 97-122: a-z 433 434 */ 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 437 439 438 440 int rectSize = this->findOptimalFastTextureSize(); … … 462 464 463 465 // all the interessting Glyphs 464 for (int i = 3 3; i <= 122; i++)466 for (int i = 32; i <= 122; i++) 465 467 { 466 468 SDL_Surface* glyphSurf = NULL; … … 528 530 } 529 531 } 532 530 533 GLuint texture; 531 534 glGenTextures(1, &texture); -
orxonox/branches/textEngine/src/story_entities/world.cc
r3775 r3776 352 352 this->glmis->step(); 353 353 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"); 356 356 testText->setBindNode(tn); 357 357
Note: See TracChangeset
for help on using the changeset viewer.