On 8/22/08, Martin Glueck <[EMAIL PROTECTED]> wrote:
> Thanks for hint, I tried yourt patch and it did not work, but it gave me the
> hint where I have to start. I have now changed the set_state to look like
> this:
>
>     def set_state(self):
>         glPushAttrib(GL_ENABLE_BIT | GL_TRANSFORM_BIT | GL_CURRENT_BIT)
>          glEnable(GL_BLEND)
>         glBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA)
>         glTranslatef(self.translate_x, self.translate_y, 0)
>
>         glEnable(GL_CLIP_PLANE0)
>         glEnable(GL_CLIP_PLANE1)
>          glEnable(GL_CLIP_PLANE2)
>         glEnable(GL_CLIP_PLANE3)
>         ### left clipping
>         glClipPlane(GL_CLIP_PLANE0, (GLdouble * 4)(
>                 1, 0, 0, -(self._view_x - 1)))
>         ### right clipping
>          glClipPlane(GL_CLIP_PLANE1, (GLdouble * 4)(
>                 -1, 0, 0, self._view_x + self._scissor_width + 1))
>         # top clipping (y > 0)
>         glClipPlane(GL_CLIP_PLANE2, (GLdouble * 4)(
>                  0, -1, 0, -0))
>          ### bottom clipping
>         glClipPlane(GL_CLIP_PLANE3, (GLdouble * 4)(
>                  0, 1, 0, self._scissor_height))

Unfortunately your code doesn't pass my test cases ;-).  I think I've
sorted out all the issues, please try r2208 (trunk) or r2209
(pyglet-1.1-maintenance).

Thanks
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to