Advertisement

Finding an hWnd in Glut? (or how can I draw fonts?)

Started by May 01, 2001 01:33 PM
0 comments, last by Edge 23 years, 6 months ago
Hey, I'm working on a project where I want to be able to draw a number of different styles of fonts on the screen at once, either as extruded text or as a bitmap. I know that GLUT allows you to draw two different fonts without using display lists, but I need more. I've looked at NeHe's code to draw fonts using CreateFont and wglUseFontOutlines, but the problem is that I haven't been able to get access to the hWnd through GLUT. First - is there an easier way to do this that doesn't require me to ditch glut? (This is for a project that is due soon. Next project I'm ditching it.) Second - if this is the best way, how do I get hWnd for the window in GLUT? Thanks for your help!! -Scott- Edited by - Edge on May 1, 2001 2:35:30 PM
i havent tried but if the window is the current selected one
HWND win = GetTopWindow( NULL ) should work im guessing

http://members.xoom.com/myBollux

This topic is closed to new replies.

Advertisement