mausimus / ShaderGlass

Overlay for running GPU shaders on top of Windows desktop
GNU General Public License v3.0
970 stars 37 forks source link

How does window not capture itself in glass mode #17

Closed jbmcgee closed 2 years ago

jbmcgee commented 2 years ago

I've looked through some of the source, but its not clear to me how glass mode avoids the "hall of mirrors" effect you get when in capturing in clone mode with the output window on the monitor that's being captured. I only see WS_EX_TRANSPARENT being set. Any insight would be great.

rohatsu commented 2 years ago

Hey, it's a "relatively" (2019?) new feature of Windows Capture, the flag is WDA_EXCLUDEFROMCAPTURE. Here's the press release I saw which gave me the idea for the app: https://blogs.windows.com/windowsdeveloper/2019/09/16/new-ways-to-do-screen-capture/

jbmcgee commented 2 years ago

Nice thanks for the insight!