How to read the z-buffer in a layer-backed openGL view?
How to read the z-buffer in a layer-backed openGL view?
- Subject: How to read the z-buffer in a layer-backed openGL view?
- From: Mathieu Coursolle <email@hidden>
- Date: Wed, 13 Aug 2008 11:16:10 -0400
Hi Cocoa developers,
I've been playing with this example for a while now:
http://developer.apple.com/samplecode/LayerBackedOpenGLView/listing2.html
and I was wondering if someone knew the answer to that question:
Is is possible to read the z-buffer (using glReadPixels) in a
mouseDown procedure?
It seems to work fine if done in the drawing procedure, but not outside.
Thanks!
Mathieu
_______________________________________________
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