OpenGL Font library
This is a font library implementation for Python/OpenGL, it is designed to plug-in to the Viper game engine but it also runs indepently.
Anthony Blackshaw
(getant)
This is a font library implementation for Python/OpenGL, it is designed to plug-in to the Viper game engine but it also runs indepently.
The library renders fonts using the textured quads method. The primary goals in developing the library were performance and flexibility, which comes at a slight cost in memory due to the large number of draw arrays the class generates.
Colour, position, angle and scale can all be specified as well as smooth or pixelated texture rendering.
The built-in cache option when calling the mWrite method supports for compiling a draw array for the specified text which greatly improves performance for large amounts of text rendered multiple times.
Modules required: Pygame, PIL, PyOpenGL, and Psyco (used to improve performance, just comment it out if you don't wish to use it).
The library renders fonts using the textured quads method. The primary goals in developing the library were performance and flexibility, which comes at a slight cost in memory due to the large number of draw arrays the class generates.
Colour, position, angle and scale can all be specified as well as smooth or pixelated texture rendering.
The built-in cache option when calling the mWrite method supports for compiling a draw array for the specified text which greatly improves performance for large amounts of text rendered multiple times.
Modules required: Pygame, PIL, PyOpenGL, and Psyco (used to improve performance, just comment it out if you don't wish to use it).
Changes
Links
- Home Page
- http://www.getme.co.uk/Viper2/Font.txt
Releases
OpenGL Font library 1 — 17 Jun, 2007