>I am porting an IRIS-GL application to OpenGL.
>I want to put simple text (dont care about font)
>like the default written by the charstr() function
>in GL. What is the closest thing to use in OpenGL?
>I need to be able to obscure the text using the Z-buffer
>if a polygon is in front of it (like I can do now in GL).
its own set. Note that glXUseXFont creates a bitmap font but
the wgl `equivalents' will create stroke or filled-area fonts.
For bitmap fonts you set the raster position with glRasterPos*
and the point you give that determines the z value for every
bit in the bitmap.
With stroke and filled-area fonts you set the position and
angle and scaling with OpenGL matrix calls (glTranslate* etc.).
In both cases the depth test and update will take place on a
per-pixel basis if enabled.
Andy V (A Digital spoke, not a Digital Spokesperson)