PDA

View Full Version : File reading and printing in openGL



Timkee
03-12-2011, 10:10 PM
Hi,

I am making a GUI in visual c++ and using OpenGL for drawing. I want to read a string from text file and print it on openGL screen.I need to read the string to be printed from file, as well as its x & y co-ordinates also from file. Can anyone suggest how to go about?

Tim

_arts_
03-13-2011, 04:44 AM
Try to google wglusefontoutlines and wglusefontbitmaps.

This allows you to create fonts and to print them easily on your opengl window.