On Dec 9, 2007 1:20 AM, mmarshall <[EMAIL PROTECTED]> wrote: > (2) is only for passing a filename to the Sprite class to load the > texture. You can just as well pass the texture id. (image.texture.id > in pyglet.)
There is a bit of a gotcha here: if the pyglet Texture object gets garbage collected the corresponding OpenGL texture will be deleted. This can happen if you're only keeping track of the texture.id, instead of the whole texture object -- so make sure you're careful to retain the texture objects you'll be using within rabbyt; or go with Matthew's other suggestion of replacing the load function. 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 -~----------~----~----~----~------~----~------~--~---
