Nehe has a tutorial on using text in opengl with some WGL functions (windows only tutorial, i believe).. http://nehe.gamedev.net/
You go to the 2D mode (in fact, the Ortho mode), and then write each letter, froma texture, as a quad.
Go to nehe.gamedev.net for some tutorials.
Height Map Editor | Eternal Lands | Fast User Directory
Go to nehe.gamedev.net for some tutorials.
Height Map Editor | Eternal Lands | Fast User Directory
I always like to say the best way to do it is load up a character set into a texture and render each character as a quad.
You would have to go through the trouble of generating the font texture, either manually or automatically, and assigning where each character starts and ends in the texture.
But, maybe there are better ways.
You would have to go through the trouble of generating the font texture, either manually or automatically, and assigning where each character starts and ends in the texture.
But, maybe there are better ways.
Yes, i also like that method.
That''s what I also use in my game, and it is very fast. Once, I stole some display lists based text display routine, from a demo, but it took away like 10%(????????) of my framerate.
My own text routine takes no framerate at all
Height Map Editor | Eternal Lands | Fast User Directory
That''s what I also use in my game, and it is very fast. Once, I stole some display lists based text display routine, from a demo, but it took away like 10%(????????) of my framerate.
My own text routine takes no framerate at all
Height Map Editor | Eternal Lands | Fast User Directory
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement