using an HDC with OpenGL

Started by
-1 comments, last by Funkymunky 16 years, 8 months ago
Basically, what I want to do is use an HDC of the desktop I've retrieved through api calls (GetDesktopWindow,GetDC,CreateCompatibleDC,CreateCompatibleBitmap ,SelectObject,BitBlt) in an OpenGL application. I essentially want to render over the desktop. How can I do this as cleanly (and quickly) as possible? I'm hesitant about using a texture, because I'd like the image to appear exactly like the desktop. In any case, I don't know how to get an HDC into a format that can be readily used by OpenGL. Anyone know?

This topic is closed to new replies.

Advertisement