Here’s another one for all you hardcore Win32/OpenGL peeps… I want to create a texture from a snapshot of an active window, given a HWND.
So say I did…
HWND Notepad = NULL; Notepad = FindWindow("Notepad", "");
… to get a handle on a running instance of Notepad, I want to use a snapshot of the window as a texture.
Now I can use GDI to capture the window as a bitmap with something along the lines of…
(Code used to be here)
… but I haven’t got a clue how to get a AUX_RGBImageRec out of it - any ideas?
Of course I don’t really care if the structure I’m using is a AUX_RGBImageRec or not, anything will do so long as I can pour my screenshot data into it and then use it to generate an OpenGL texture.
Having struggled with this for days, I’m now ready to plead to those with superior Win32 skills.
Brgrds, and thanks,
[This message has been edited by IainC (edited 10-24-2000).]