Hi, thanks a lot, that was exactly what I needed.
Regards Peter On 6 Sep., 17:07, Txema Vicente <[email protected]> wrote: > Hi. > > You can subclass a pyglet.group and do something like this: > > class ClipGroup(graphics.OrderedGroup): > def __init__(self, name="ClipGroup",order=0, parent=None): > super(ClipGroup, self).__init__(order, parent) > self.x, self.y, self.w, self.h = 0, 0, 256, 256 > self.name=name > > def set_state(self): > gl.glScissor(self.x, self.y, self.w, self.h) > gl.glEnable(gl.GL_SCISSOR_TEST) > > def unset_state(self): > gl.glDisable(gl.GL_SCISSOR_TEST) > > El 06/09/2010 12:06, ptriller escribi : > > > Hello, > > > ist there any mechanism in pyglet with which I can implement "clip- > > rects" in pyglet, I didn't find anything > > so far. -- 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.
