Fonts in OpenGL: Difference between revisions
Appearance
No edit summary |
Rwilson131 (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
The fonts are made by next algorithm: | |||
- enable font operations via SDL_ttf (GLFontRenderer) | - enable font operations via SDL_ttf (GLFontRenderer) | ||
| Line 8: | Line 8: | ||
- for letters that are used, it will creates image pictures and it will create a texture for them (GLFontTextureList::TextOut) and meshcontainers for them | - for letters that are used, it will creates image pictures and it will create a texture for them (GLFontTextureList::TextOut) and meshcontainers for them | ||
[[Category: Programmer's Guide]] | |||
Latest revision as of 00:48, 6 September 2007
The fonts are made by next algorithm:
- enable font operations via SDL_ttf (GLFontRenderer)
- when appears a text, with a specified font, on demand it will be reused if doesn't exist already (GLFontRenderer based on a GLFontManager creates a GLFont)
- secondly it creates a for specified font, the color and style if is not already set (GLFont does the setup which creates a GLFontTextureList)
- for letters that are used, it will creates image pictures and it will create a texture for them (GLFontTextureList::TextOut) and meshcontainers for them