SDL TTF in OpenGL window

Yes, before being flamed, I’ve read all the comments on why not to use
SDL_OPENGLBLIT. Noted.
Is there any way to use SDL TTF writing functions in an OpenGL context? If
this would be too much work/make a program run slow, then does anyone know
of any decent alternatives? Preferable of the smaller-download nature (i’m
on some really slow dialup).

Thanks in advance.

Oz~

Is there any way to use SDL TTF writing functions in an OpenGL context?

You just have to convert the surfaces made by it to GL textures. There
should be lots of examples in this mailing list.

Also, the wiki has one. It’s not too elaborate but still a good start.
http://www.libsdl.org/cgi/docwiki.cgi/OpenGL_20Texture_20ExampleOn 6/7/06, Ilya Olevsky wrote:

Is there any way to use SDL TTF writing functions in an OpenGL context?

You just have to convert the surfaces made by it to GL textures. There
should be lots of examples in this mailing list.

  • SR