Looks like adding iterator access to GL3Slots fixes this:
pygl3display/infrastructure.py:
class GL3Slots(object): def __init__(self, slots, indices): self.slots = tuple(slots) self.indices = indices
def release(self): self.indices.release(self.slots)
def upload(self, data): self.indices.upload(self.slots, data)
+ def __iter__(self): + return self.slots.__iter__()
Looks like adding iterator access to GL3Slots fixes this:
pygl3display/ infrastructure. py:
class GL3Slots(object):
self.indices = indices
def __init__(self, slots, indices):
self.slots = tuple(slots)
def release(self):
self.indices. release( self.slots)
def upload(self, data):
self.indices. upload( self.slots, data)
+ def __iter__(self): __iter_ _()
+ return self.slots.