View Full Version : Textout and Numeric display using OpenGL win 32 Application
04-14-2003, 07: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.
04-14-2003, 09:13 AM
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.