Click here to Skip to main content
15,314,594 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
anyone there??
i am doing a project on computer graphics in visual studio 08 plus openGL.I want to display the contents of a file on opengl window.help me out please..
Posted

Here's a short summary of your Options to Output text to a OpenGL window. Survey Of OpenGL Font Technology[^]. They even mention some of the available sample code.

Regards,
— Manfred
   
Comments
Espen Harlinn 14-Apr-13 8:03am
   
5'ed!
Assuming this for quality rendering of text on an OpenGL capable device:

You can start by diving into Chris Greens' Valve Paper[^]

You would typically use something like freetype[^] to retrive the outlines of the glyphs used to render the text.

Trivial rendering can be achieved by doing something like this:
Drawing Text in a Double-Buffered OpenGL Window[^]

Best regards
Espen Harlinn
   
Comments
Member 10010290 24-Apr-13 9:54am
   
thank u..it worked well in my project

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900