PDA

View Full Version : Textout and Numeric display using OpenGL win 32 Application



kashif saeed
04-14-2003, 06:34 AM
i am facing difficulty in displaying any text say a word like "hello" or any numeric digit like 44.5 on my OpenGL screen . Can someone help me out how to go about it . in GDI we have Textout where the numbers are converted to ASCII value and displayed through "textout" . how can i perform same operation in OpenGL.

mikael_aronsson
04-14-2003, 08:13 AM
Hi !

You need to use wglUseFontOutlines() or wglUseFontBitmaps().

These functions convert a font to triangles/polylines or bitmaps that you can render in OpenGL.

There are lots of tutorials on this, just do a search on one of the functions above and opengl on google and you should get lots of help.

Mikael