Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 6, 2005, 8:35:06 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/textEngine: some new functions to get the optimum size (sqare) of the FastTexture-Array, and to initialize all the Glyphs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/textEngine/src/lib/graphics/font/glfont.h

    r3735 r3736  
    2525#define FONT_NUM_COLORS         256                  //!< The number of colors.
    2626
     27#define FONT_HIGHEST_KNOWN_CHAR 128                  //!< The highest character known to the textEngine.
    2728
    2829
     
    8889
    8990  // information about the Font
    90   TTF_Font* font;                  //!< The font we use for this.
    91   char* fontFile;                  //!< The fontfile from whitch the font was loaded.
    92   unsigned int fontSize;           //!< The size of the font in pixels. each Font has one size.
     91  TTF_Font* font;                   //!< The font we use for this.
     92  char* fontFile;                   //!< The fontfile from whitch the font was loaded.
     93  unsigned int fontSize;            //!< The size of the font in pixels. each Font has one size.
     94 
     95  Glyph** glyphArray;               //!< An Array of all the Glyphs stored in the Array of Glyphs.
    9396
    9497  //! Represents one textElement.
     
    112115  int getMaxAscent(void);
    113116  int getMaxDescent(void);
    114   Glyph getGlyphMetrics(Uint16 character);
     117  Glyph* getGlyphMetrics(Uint16 character);
    115118
    116119  static bool ttfInitialized;
     
    124127  GLuint loadTexture(SDL_Surface* surface, TexCoord* texCoord);
    125128
     129  void initGlyphs(Uint16 from, Uint16 count);
     130  int findOptimalFastTextureSize(void);
    126131  static int powerOfTwo(int input);
    127132
Note: See TracChangeset for help on using the changeset viewer.