Changeset 3736 in orxonox.OLD for orxonox/branches/textEngine/src/lib/graphics/font/glfont.h
- Timestamp:
- Apr 6, 2005, 8:35:06 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/textEngine/src/lib/graphics/font/glfont.h
r3735 r3736 25 25 #define FONT_NUM_COLORS 256 //!< The number of colors. 26 26 27 #define FONT_HIGHEST_KNOWN_CHAR 128 //!< The highest character known to the textEngine. 27 28 28 29 … … 88 89 89 90 // 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. 93 96 94 97 //! Represents one textElement. … … 112 115 int getMaxAscent(void); 113 116 int getMaxDescent(void); 114 Glyph getGlyphMetrics(Uint16 character);117 Glyph* getGlyphMetrics(Uint16 character); 115 118 116 119 static bool ttfInitialized; … … 124 127 GLuint loadTexture(SDL_Surface* surface, TexCoord* texCoord); 125 128 129 void initGlyphs(Uint16 from, Uint16 count); 130 int findOptimalFastTextureSize(void); 126 131 static int powerOfTwo(int input); 127 132
Note: See TracChangeset
for help on using the changeset viewer.