Hi Anton, Pyglet is just a normal X application under Linux, wrapping xlib with ctypes. This means that it's definitely possible to do this, but there is no current high-level abstraction written in pyglet to do it. There is a gist here that shows a C example (which you may have seen already): https://gist.github.com/je-so/903479
>From what I can tell, you need to set a few different flags in the window attributes. If you want to have a try getting it working, you can find the code in pyglet/window/xlib/__init__.py It would be a nice feature to have at some point, which would allow pyglet to be used for different types of on screen display projects. On Sunday, May 14, 2017 at 9:05:17 PM UTC+9, Lord Anton Hvornum wrote: > > I find that no one has asked the question or I'm alone in trying this. > I would like to create something similar to this: > > https://i.stack.imgur.com/iTwMo.png > > A transparent glClear() "window" that i can render things in with alpha > channels. > GTK and TKinter has them: > > > http://stackoverflow.com/questions/18394597/is-there-a-way-to-create-transparent-windows-with-tkinter > > http://stackoverflow.com/questions/19577367/python-how-to-make-transparent-window-with-gtk-window-but-not-with-gtk-window > > And it's fully possible to create this with a C OpenGL extension, but I > find very little on this on the Pyglet side of things. > I've been using Pyglet för several years now and have wanted this feature > for quite a while but never gotten around to bother anyone about it, but > here i am. Is it at all possible? > > Best regards //Anton > -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
