Advertisement

Screen Capture

Started by March 29, 2002 02:28 AM
3 comments, last by Waldoo 22 years, 11 months ago
How do you make screen capture and put captured image into texture map for OpenGL in run-time? I made a program like that in VB and it worked pretty good. I want to try to make one like it in VC++. If you know please post code here or email to me at gcwebber@inreach.com Waldoo
Look up glReadPixels. If you already know about it: it''s much the same in C/C++ as how you''d do it in VB.

Advertisement
Yes I know glReadPixel but I dont think it can capture the screen outside glwindow.

Waldoo
I can''t really be sure about this, but IIRC using NULL as the HWND in GetDC() will get you a device context for the entire screen.

Not sure if it works in both win9x and winnt though...
I am still newbie in VC++. I hope u don''t mind to post screen capture code here or upload it to my email account.

Waldoo

This topic is closed to new replies.

Advertisement