I'm using SDL and OpenGL to do a 3d game.
I saw SDL_TTF and tried to use it, which involves rendering text to a surface and blitting that surface to the "screen" surface.
Unfortunately this does not seem to work if the screen is an OpenGL surface, because I never see the font being rendered unless I deactivate the OpenGL
setting in the video mode (SDL_OPENGL) and comment all OpenGL instructions (i.e. deactivate OpenGL completely) on my app.
Is there any way I can do blitting (without using the SDL_OPENGL_Blitting or so hack (which I have found to be called the ultimate evil)), or any simple way to do font rendering ?
Or am I going to have to render font to a texture and use that texture in a polygon.. ?
In case I have to use the texture-polygon approach, can I do it in a way I only see the rendered text but not the entire polygon?
Thanks in advance!