Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I trap display driver drawing commands on Mac OS X?

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!

like image 434
ldoogy Avatar asked Jan 23 '26 03:01

ldoogy


1 Answers

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

like image 84
genpfault Avatar answered Jan 25 '26 22:01

genpfault



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!