EasyGame Lesson06 – Draw Text With OpenGL

This sample shows us how to draw some text on the screen with OpenGL. If you just want to display some characters or digital numbers, you could go with the OpenGL built in display list or even with a simple texture. But if you want to display more complicated font, you need to draw such text into some immediate font buffer (like a bit map), then copy the content from the buffer to the OpenGL frame buffer. That is how to display Chinese with OpenGL.
lesson06_screen_shot 

The full source code could be found from here.

posted @ 2012-12-29 22:40  opencoder  阅读(303)  评论(0编辑  收藏  举报