Cant do text

Is there any way to write text on a gl pygame surface?

(log in to comment)


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.
did not get it to work.