That solved my problem, thanks
On Feb 14, 12:05 am, "Alex Holkner" <[EMAIL PROTECTED]> wrote:
> On Feb 14, 2008 8:36 AM, cladinapathy <[EMAIL PROTECTED]> wrote:
>
>
>
> > When I draw PNG's in photoshop, and leave some parts of them
> > transparent, after I blit them to the screen, the transparent parts
> > become black and mask whatever is underneath it, which is far from
> > what is expected... I am new to pyglet so please forgive me if there
> > is a really obvious solution to this, but even if there is so, can
> > someone please point me to the direction of it?
>
> See the examples/image_display.py example. You need to specify a blend mode:
>
> from pyglet.gl import *
> glEnable(GL_BLEND)
> glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
>
> Alex.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---