Hash :
6ce3b10b
Author :
Date :
2008-10-31T22:33:44
pulled from downstream bzflag. apply sf patch 2210898 (Fix for some potential FTGL issues) from Matt Handley (applmak) where he adds some asserts that check for the conditions that provoke glTexSubImage2D to return GL_INVALID_VALUE. this is being provoked by ftgl during Advance when the font size (0-2) is smaller than the hard-coded default font padding size (3).
FTGL 2.1
5 December 2004
DESCRIPTION:
FTGL is a free open source library to enable developers to use arbitrary
fonts in their OpenGL (www.opengl.org) applications.
Unlike other OpenGL font libraries FTGL uses standard font file formats
so doesn't need a preprocessing step to convert the high quality font data
into a lesser quality, proprietary format.
FTGL uses the Freetype (www.freetype.org) font library to open and 'decode'
the fonts. It then takes that output and stores it in a format most efficient
for OpenGL rendering.
Rendering modes supported are:
- Bit maps
- Antialiased Pix maps
- Outlines
- Polygon meshes
- Extruded polygon meshes
- Texture maps
- Buffer maps
USAGE:
FTGLPixmapFont font("Arial.ttf");
font.FaceSize(72);
font.Render("Hello World!");
CONTACT:
Please contact us if you have any suggestions, feature requests, or problems.
Sam Hocevar <sam@zoy.org>
Christopher Sean Morrison <learner@brlcad.org>