Sign in to follow this  
storage

Window capturing?

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Are you capturing the whole desktop with the game or just the game itself?

Since I think you are utilizing Opengl, try "glReadPixels()".

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this