Tomasz “h3r3tic” Stachowiak has put together a brief, but useful, tutorial on rendering text in OpenGL with FreeType. A lot of people use the old technique of generating a font bitmap and loading it into display lists. h3r3tic calls this method “stupid,” and rightly so. If you want to learn how to get prettily rendered fonts suitable for use with more than just ASCII characters, h3r3tic’s tutorial will start you out on the right path.
The example source is all in D but shouldn’t be difficult to follow for those who aren’t familiar with the language. If you fall into that group, you’re really missing out.
Technorati Tags: game programming, game development, font rendering, fonts, OpenGL, D Programming Language, tutorials, FreeType
Post a Comment