如何在linux上创建透明窗口 [英] How to make transparent window on linux
问题描述
我想使用X11和glx(OpenGL应用程序)。
我已经找到一种方法来删除窗口周围的边框,但我找不到如何使它透明。如何实现这一点?
这绝对是你想卸载到GPU。我不会建议直接使用X11 lib性能的原因。让OpenGL做到。我找到了 glXChooseVisua l的以下链接。
此外,这里是另一个SO
此外,这是用于窗口,但它仍然适用。
I want to make application an application with a splash screen on Linux.
I want to use X11 and glx (OpenGL application).
I've found a way to remove the border around the window, but I can't find how to make it transparent. How can I accomplish this?
This is definitely something that you will want to offload to the GPU. I would not recommend directly using the X11 lib for performance reasons. Let OpenGL do it. I did find the following link for glXChooseVisual.
Also, here is another S.O. question that may be helpful.
Furthermore, this is for windows, but it should still apply.
这篇关于如何在linux上创建透明窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!