如何在linux上创建透明窗口 [英] How to make transparent window on linux

查看:360
本文介绍了如何在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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆