View Full Version : getting the device context handle
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!
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.
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.
Powered by vBulletin® Version 4.2.2 Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.