Textout and Numeric display using OpenGL win 32 Application

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.

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