On Nov 16, 2007 3:25 AM, manatlan <[EMAIL PROTECTED]> wrote: > and when i blit it in my window, like this : > img.blit(x,y) > > there is no transparency at all (?!), only solid colors ... what is > the problem ?
You need enable blending in the current OpenGL state. Do this once during setup (after creating the window) if you're happy for everything to be alpha-blended in the usual way: from pyglet.gl import * glEnable(GL_BLEND) glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA) See the examples/image_display.py example for a compete example. Cheers 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 -~----------~----~----~----~------~----~------~--~---
