Re: capturing a partial screen.
Re: capturing a partial screen.
- Subject: Re: capturing a partial screen.
- From: David Hoerl <email@hidden>
- Date: Fri, 04 Sep 2009 18:10:37 -0400
The solution is (using the original OpenGLScreenCapture project code)
to modify this statement in FrameReader.m:
glCopyTexSubImage2D(GL_TEXTURE_RECTANGLE_ARB, 0, 0, 0, 0, 0, mWidth, mHeight);
to
glCopyTexSubImage2D(GL_TEXTURE_RECTANGLE_ARB, 0, 0, 0, 100, 50,
mWidth+100, mHeight+50);
where I've obviously used constants, and mWidth and mHeight are the
respective sizes of the desired snapshot.
I know it works - the product I used it in just shipped :-)
David
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden