View Full Version : writing on opengl window
01-11-2008, 02:20 AM
how can we write a word to an opengl window
thanks in advance
01-11-2008, 03:49 AM
OpenGL has no Font Support. You can see some way to do it on your own over here: http://www.opengl.org/resources/features/fontsurvey/
01-11-2008, 05:49 AM
for me there is no requirement of a specific font
i just want to display a word on screen (in no matter what format)
is there a way
01-11-2008, 05:54 AM
Maybe you dont need a specific font, but you need a font! And as i said OpenGL doesn t have any font support. So do it on your own. The link above descripes some techniqes to do it.
If you just want to print one static word or text on the screen, the easiest method would be to just create a texure with black background maybe and some white text on it. And then in Your OpenGL Application you open the Imagefile and create a Texture from it. After that you can display a Quad with that Texture on it. Then you have the Text on the Screen.
01-11-2008, 06:43 AM
And look through the tutorials.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.