On 10/15/08, Noyan Tokgozoglu <[EMAIL PROTECTED]> wrote:
>
> Hello again, I am trying to load an image and display it on a texture,
> then draw on it. But I can't load the image, I get an error saying:
>
> Traceback (most recent call last):
> File "drawerogl.py", line 544, in <module>
> if __name__ == '__main__': main()
> File "drawerogl.py", line 522, in main
> draw()
> File "drawerogl.py", line 306, in draw
> tex.blit_into(image,0,0,0)
> File "C:\Python25\Lib\site-packages\pyglet\image\__init__.py", line
> 1598, in b
> lit_into
> source.blit_to_texture(self.target, self.level, x, y, z)
> File "C:\Python25\Lib\site-packages\pyglet\image\__init__.py", line
> 473, in bl
> it_to_texture
> raise ImageException('Cannot blit %r to a texture.' % self)
> pyglet.image.ImageException: Cannot blit <TextureRegion 683x620> to a
> texture.
You cannot blit a texture into another texture (due to the design of
OpenGL). You can, however, blit an image in memory (ImageData,
usually returned directly from pyglet.image.load()) into a texture.
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
-~----------~----~----~----~------~----~------~--~---