an additional question:
group1 = pyglet.graphics.OrderedGroup(0)
group2 = pyglet.graphics.OrderedGroup(1)
group3 = pyglet.graphics.OrderedGroup(2)
texture_group1 = pyglet.graphics.TextureGroup(atlas1.texture, group1)
texture_group2 = pyglet.graphics.TextureGroup(atlas2.texture, group2)
texture_group3 = pyglet.graphics.TextureGroup(atlas1.texture, group3)
print texture_group1 == texture_group3
results in True - why?
when looking at pyglet/graphics/__init__.py these should evaluate in
two different groups as the order of the parent is different.... OH
WAIT!!
i just read the TextureGroup code again and I think I found a bug:
def __eq__(self, other):
return (self.__class__ is other.__class__ and
self.texture.target == other.texture.target and
self.texture.id == other.texture.id and
self.parent == self.parent)
the last line should be self.parent == other.parent or it will always
be true
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---