Archived

This topic is now archived and is closed to further replies.

BauerGL

Creating bitmap fonts with SDL

Recommended Posts

Hi, I want to make bitmap fonts using SDL. And all the tutorials about bitmap fonts have been in "pure" Win32 code using HDCs and HWNDs, which don''t come with SDL. So my question is how to print 2D text using either SDL or OpenGL. I''m having OpenGL for graphics, and SDL for window management. Thanks! CUselessStuff::NiftyQuote();

Share this post


Link to post
Share on other sites
SDL does not provide font management.

Though, there is a portable way of doing simple font bitmaps : using a big picture as a texture.
The texture has to be diveded in little squares, where each square represents one character.

NeHe uses this technique too.

Share this post


Link to post
Share on other sites