PDA

View Full Version : Text in OpenGL-2D-programm



Bernhard
06-09-2002, 05:39 AM
Is there a simple way to show a text or a number in a OpenGL-2D-programm? perhaps with glut? Or must I use bitmaps?

Thank you

jmathies
06-09-2002, 06:50 AM
Originally posted by Bernhard:
Is there a simple way to show a text or a number in a OpenGL-2D-programm? perhaps with glut? Or must I use bitmaps?

Thank you

Most toolkits have font support of some
form or another. GLUT does, so does Cpw.
Check out the OpenGL font technologies
listed in the faq:
Gl Toolkit FAQ (http://www.mathies.com/glfaq/)

[This message has been edited by jmathies (edited 06-09-2002).]

mikael_aronsson
06-09-2002, 12:02 PM
Hi !

Both Windpws and X has functions to create fonts as line/triangles objects, Windows also support text as bitmap objects (wglUseFontBitmaps).

Mikael

Scorpion
06-09-2002, 12:48 PM
There is three different methods for doing this at nehe.gamedev.net. Only one is system independent (and doesn't use any toolkits), ohers are for Windows.