Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7727 in orxonox.OLD for trunk/src/lib/graphics/text_engine


Ignore:
Timestamp:
May 19, 2006, 2:25:15 PM (19 years ago)
Author:
bensch
Message:

trunk: some GL-properties for the Textures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/text_engine/font.cc

    r7450 r7727  
    427427  // Surface definition.
    428428  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,
    430430                          rectSize, rectSize,
    431431                          32,
     
    494494//       sprintf( outName, "%s-glyphs.bmp", this->getName());
    495495//       SDL_SaveBMP(tmpSurf, outName);
    496 
     496  this->setAlpha(true);
    497497  if (this->setSurface(tmpSurf))
    498498    (this->setTexture(Texture::loadTexToGL(tmpSurf)));
     
    500500
    501501/**
    502  * stores Glyph Metrics in an Array.
     502 * @brief stores Glyph Metrics in an Array.
    503503 * @param from The Glyph to start from.
    504504 * @param count The number of Glyphs to start From.
     
    535535/**
    536536 * @returns the optimal size to use as the texture size
    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 :))
     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 :))
    543543 */
    544544int Font::findOptimalFastTextureSize()
Note: See TracChangeset for help on using the changeset viewer.