In article <[EMAIL PROTECTED]>,
 Livia Koch <[EMAIL PROTECTED]> wrote:

> I'm sorry, I might have been not specific enough. I'm able to draw things in 
> 3d, rotate them, get the window coordinates, map them onto object coordinates 
> (gluUnProject) etc. My problem is that I want to WRITE a text next to the 
> axes and I want the text to rotate together with the model. I haven't found a 
> writing function in 3d.

The easy way: look at the "stroked" fonts available through 
glutStrokeCharacter(). Stroked fonts are drawn as simple primitives 
(lines) using call lists, thus they get transformed as any other GL 
call. But the output isn't that good.

For a more sophisticated solution, you should render your text using an 
external library (like freetype), transfer to a texture and draw a 
textured quad. Googling for "opengl freetype" should provide some 
overlong list of examples.

_______________________________________________
fltk-opengl mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-opengl

Reply via email to