I don't know if this is correct, but it seems to work - patch follows
blank line.
Index: blend.py
===================================================================
--- blend.py (revision 2331)
+++ blend.py (working copy)
@@ -11,7 +11,7 @@
from ctypes import *
from pyglet.gl import *
-from pyglet import clock
+from pyglet import clock, image
from pyglet.image import *
from pyglet.window import *
from pyglet.window.event import *
@@ -57,7 +57,7 @@
w.push_handlers(on_key_press)
on_resize(w.width, w.height)
-tex = Texture.load('tests/image/rgba.png')
+tex = image.load('tests/image/rgba.png').get_texture()
# ordinary blend func
glEnable(GL_BLEND)
glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
@@ -79,5 +79,5 @@
w.dispatch_events()
glClear(GL_COLOR_BUFFER_BIT)
blend_to_color(*current)
- tex.draw()
+ tex.blit(0, 0)
w.flip()
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---