SourceFiles.org - Use the Source, Luke
Home | Register | News | Forums | Guide | MyLinks | Bookmark

Related Sites

Latest News
  General News
  Reviews
  Press Releases
  Software
  Hardware
  Security
  Tutorials
  Off Topic


Back to files

This is an OpenGL font library that uses FreeType 2.0.

We are inspired by the TK font interface.

To use the font library, first you need to tell it where the font directories are oglft::addFontDir(). Once you have done so, you may save and restore the font information with saveFontInfo() and restoreFontInfo() respectively.

To draw with a font, you first need to set the OpenGL context, typically by creating an OpenGL-enabled Window. Then get a Font object, then legal names are found by listFonts(). Then you need a oglft Context which it used to setup various OpenGL state before drawing. Then draw all of your text and release the Context.


Other Sites

Discussion Groups
  Beginners
  Distributions
  Networking / Security
  Software
  PDAs

About | FAQ | Privacy | Awards | Contact
Comments to the webmaster are welcome.
Copyright 2006 Sourcefiles.org All rights reserved.