Transparent Background

140 views
Skip to first unread message

Mike

unread,
Jul 13, 2011, 11:24:12 PM7/13/11
to pyglet-users
Hey everyone,

Right now I'm trying to use pyglet to display a stimulus, and the
stimulus is only around the edges of the window. Is there any way to
make the rest of the window transparent?

Thanks,

Michael Red

unread,
Jul 14, 2011, 12:44:35 PM7/14/11
to pyglet...@googlegroups.com
The window? As in, the OpenGL context, everything? To my knowledge, not natively, and definitely no cross-platform way of doing it reliably. You could maybe somehow screenshot what's behind it and blit it to the context, I suppose?


--
You received this message because you are subscribed to the Google Groups "pyglet-users" group.
To post to this group, send email to pyglet...@googlegroups.com.
To unsubscribe from this group, send email to pyglet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/pyglet-users?hl=en.


Jonathan Hartley

unread,
Jul 19, 2011, 2:17:13 AM7/19/11
to pyglet...@googlegroups.com
What platform are you working on? As Mike Redhorse says, I doubt there is a cross-platform way, so you'll have to focus on one platform.

I'd guess that you have to be searching for how to display non-rectangular windows on that platform (because this is done by using partially-transparent windows), and figure out how to open a window yourself by that method (i.e. not using pyglet) and then create an opengl context for that window, and pass that opengl context to pyglet, to draw on.


Reply all
Reply to author
Forward
0 new messages