PDA

View Full Version : about glRasterPos and wglUseFontOutline



leegang
03-28-2003, 09:46 PM
Can I use glRasterPos and wglUseFontOutline to create a chinese character? How can I create a glyph at any positon?

thanks

JustHanging
03-29-2003, 08:09 AM
Hi,

You can't use glRasterPos with outline fonts, it only works on bitmaps, created by wglUseFontBitmap or something like that. Outline fonts are placed by glTranslatef, just like any other geometry. If you like to place them by window coordinates, set up an orthographic projection with same dimensions as you window. In practice
gluOrtho2d(0, window_width, 0, window_height)

-Ilkka