You can create a text image on a Pygame surface using Pygame's font functionality, and then create an OpenGL texture from the Surface data. (It's a little weird with Pygame's unwieldy surface operations, but it should work ok.) There's a recipe on the Pygame site that shows how to turn a surface object into an OpenGL texture. The recipe is for loaded images, but there's no reason it couldn't be adapted for use with a rendered text surface.
aerojockey on 2007/09/08 02:24:
You can create a text image on a Pygame surface using Pygame's font functionality, and then create an OpenGL texture from the Surface data. (It's a little weird with Pygame's unwieldy surface operations, but it should work ok.) There's a recipe on the Pygame site that shows how to turn a surface object into an OpenGL texture. The recipe is for loaded images, but there's no reason it couldn't be adapted for use with a rendered text surface.