views:

41

answers:

2

I am trying to find a clean and elegant way to trap all display driver drawing commands on Mac OS X so I have visibility to anything that gets drawn on the screen, before it goes to the physical display driver. Simple bitmaps won't do it -- I need the actual drawing commands and not just notifications on which areas have changed.

This could be Quartz drawing commands or just pure OpenGL, I can live with any API as long as it's detailed enough.

Is there any way to get into Quartz Extreme to catch its OpenGL commands or something?

Thanks in advance!

+1  A: 

I can't answer your question directly. But I remember a talk by Amit Singh, who near the end of the talk scambled the way applications were drawn on the screen (I can't describe it in words, you'll better see it yourself). Maybe it can give you some insights.

The effect and explanation is at around 56:00.

The MYYN
+2  A: 

Look into the technique GLIntercept uses. You'll probably have to adapt it to whatever OSX uses for LD_PRELOAD.

genpfault