Move the glEnable and glBlendFunc into the on_draw function.
def on_draw():
glEnable(GL_BLEND)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
window.clear()
background.blit(0, 0, 0)
ice.blit(10, 10, 0)
On Fri, Feb 17, 2012 at 04:44, Paul <[email protected]> wrote:
> sorry about that, heres a link to an example of this problem:
> http://www.mediafire.com/?8278qayj4toq61y
> the white 'border' around the main image should be transparent
>
> --
> You received this message because you are subscribed to the Google Groups
> "pyglet-users" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/pyglet-users?hl=en.
>
--
You received this message because you are subscribed to the Google Groups
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/pyglet-users?hl=en.