Changeset 7727 in orxonox.OLD for trunk/src/lib/graphics/text_engine
- Timestamp:
- May 19, 2006, 2:25:15 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/text_engine/font.cc
r7450 r7727 427 427 // Surface definition. 428 428 SDL_Rect tmpRect; // this represents a Rectangle for blitting. 429 SDL_Surface* tmpSurf = SDL_CreateRGBSurface(SDL_ SWSURFACE,429 SDL_Surface* tmpSurf = SDL_CreateRGBSurface(SDL_HWSURFACE, 430 430 rectSize, rectSize, 431 431 32, … … 494 494 // sprintf( outName, "%s-glyphs.bmp", this->getName()); 495 495 // SDL_SaveBMP(tmpSurf, outName); 496 496 this->setAlpha(true); 497 497 if (this->setSurface(tmpSurf)) 498 498 (this->setTexture(Texture::loadTexToGL(tmpSurf))); … … 500 500 501 501 /** 502 * stores Glyph Metrics in an Array.502 * @brief stores Glyph Metrics in an Array. 503 503 * @param from The Glyph to start from. 504 504 * @param count The number of Glyphs to start From. … … 535 535 /** 536 536 * @returns the optimal size to use as the texture size 537 538 539 540 541 542 537 * 538 * @todo: this algorithm can be a lot faster, althought it does 539 * not really matter within the init-context, and 128 glyphs. 540 * 541 * This function searches for a 2^n sizes texture-size, this is for 542 * openGL-version < 1.2 compatibility ( and because it is realy easy like this :)) 543 543 */ 544 544 int Font::findOptimalFastTextureSize()
Note: See TracChangeset
for help on using the changeset viewer.