Difference between revisions of "Fonts in OpenGL"

From LinuxMCE
Jump to: navigation, search
 
Line 1: Line 1:
 
<table width="100%"> <tr><td bgcolor="#FFCFCF">This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007.  In general any information should apply to LinuxMCE.  However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto.</td></tr> </table>The fonts are made by next algorithm:
 
<table width="100%"> <tr><td bgcolor="#FFCFCF">This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007.  In general any information should apply to LinuxMCE.  However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto.</td></tr> </table>The fonts are made by next algorithm:
  
- enable font operations via SDL_ttf
+
- 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)
 
- 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)

Revision as of 09:35, 15 September 2006

This page was written by Pluto and imported with their permission when LinuxMCE branched off in February, 2007. In general any information should apply to LinuxMCE. However, this page should be edited to reflect changes to LinuxMCE and remove old references to Pluto.
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