   drawing text in openGL with SDL
  I have been working on a small game using opengl and SDL, on and off over the last few years. A few weeks ago my laptop got stolen and I had no backup of the source code..:(well, I have reconstructed most of the code now, and improved it quite a bit too :)but I can't seem to get my text printing function to work.I don't remember how in the world I did it but I wasn't using anything but SDL and opengl. I've been surfing for solutions for hours but all of them seem to require additional libraries or windows-specific functions( like NeHe tut 13, which doesn't work with SDL).any code sample would be most welcomeThank you :)   
  i can't find my old code for this but i just used sdl fonts to draw characters to a sdl image, converted the sdl image to a gl texture and drawlisted a bunch of quads  for each char   ;  Thanks, now that you mention it im pretty sure that was my old approach, still any sample coe would be most helpfull. (convenient that is :) )   ;FTGL is easy to use, fast and supports a number of rendering modes (texture mapped fonts are probably the ones you want for speed). It's what I use for all of my text rendering. I recall when I was looking for a good font library I found it was faster than the GLUT and SDL_ttf approaches. It's not really maintained any more, but I haven't found any reasons for that to be an issue.   ;  Since you don't want to link to any other libraries, I think this is a nice solution for you if you have access to a windows machine:1: Download LMNOpc's Bitmap Font Builder to create font textures and save their metrics: here2: Simply load that texture, read those metrics, and blit/render the chars.I have some code that does this lying around (GL, stdlib c). If you want I could post it here, but what is the fun in that? :)   