PDA

View Full Version : getting the device context handle



dvm
07-06-2004, 04:58 AM
I want to write a small app. For this reason I want to use glut and not win32. Is there a way to get the HDC (handle to device context)? I need it to use some text rendering functions I have from my win32 project. Thanks in advance!

Relic
07-06-2004, 05:37 AM
For the HDC in a GLUT program I'd use wglGetCurrentDC(). :rolleyes:
But you can use any Win32 API call you want.

dvm
07-06-2004, 06:00 AM
Thanks for the quicky :)
I don't know if that's the function I had on my mind when I was searching msdn, but trying to find a win32 function in the likes of GetHDC was fruitless. They have a GetHWND though. Go figure.