Window capturing?

Started by
1 comment, last by ZQJ 18 years, 8 months ago
I'm currently trying to make an application that captures a screenshot of a game window (say Nexuiz), and then displays it in my application as an OpenGL quad. Is this possible without hooking and stuff? Thanks!
Advertisement
Are you capturing the whole desktop with the game or just the game itself?

Since I think you are utilizing Opengl, try "glReadPixels()".
If you mean reading pixels from another application you should be able to find the window handle and use GetDIBits. This may require the window in question not to be obscured.

This topic is closed to new replies.

Advertisement