How can I mask display driver drawing commands in Mac OS X?

I'm trying to find a clean and elegant way to catch all the drawing driver commands for a display driver on Mac OS X so that I can see everything that is drawn on the screen before it enters the physical display driver. Simple bitmap images won't do this - I need actual drawing commands, not just notifications about which areas have changed.

It can be quartz drawing commands or just pure OpenGL, I can live with any API if it is sufficiently detailed.

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

Thanks in advance!

+3
source share
2 answers

Take a look at the GLIntercept technique . You will probably have to adapt it to what OSX uses for LD_PRELOAD .

+2
source

I can not answer your question directly. But I remember the conversation of Amit Singh, who, near the end of the conversation, deceived how the applications were drawn on the screen (I can not describe it in words, you better see it). Perhaps this may give you some ideas.

The effect and explanation are around 56:00.

+1
source

Source: https://habr.com/ru/post/1751331/


All Articles