简体   繁体   中英

How to make OpenTK.GLControl Transparent

I am using WPF and OpenTk and I have a GLControl that is set to Transparent, the clear color is set to Transparent as well but when it draws the rectangle it becomes black. How do I make it so that it draws my rectangle on a transparent background, I have stuff behind the OpenTK.GLControl that I want to see along with the rectangle.

Your OpenGL windows are regular Win32 windows. They do not work with WPF's "I can't believe it's not a window" windows. You can't make an OpenGL window transparent in the way you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM