PDA

View Full Version : How i can draw rotated text?



Sanya
02-07-2001, 12:55 AM
Anybody know how it is possible to draw text rotated on 90,180,270 degree.
If i use somethink like this:

hFont = CreateFont(24, 0, 0, 90, FW_BOLD,FALSE, FALSE, FALSE,ANSI_CHARSET, OUT_TT_PRECIS,CLIP_DEFAULT_PRECIS,ANTIALIASED_QUAL ITY,FF_DONTCARE|DEFAULT_PITCH,"MS Sans Serif");

Text draw not rotated!

And if i use glRotate() text not rotated too!
Help me plz! http://www.opengl.org/discussion_boards/ubb/smile.gif

DFrey
02-07-2001, 05:04 AM
You have essentially two options, you can use wglUseFontOutlines to produce display lists of meshes which can be rotated just like any other model can, or you can use textured quads.

Sanya
02-07-2001, 05:28 AM
I tryed use wglUseFontOutlines but its not drawen at all! May be becouse i use orthographical projection? It is need any special actions?