On 8/22/08, Martin Glueck <[EMAIL PROTECTED]> wrote: > Hi, > > I idea is to implement a scrolling text using the IncrementalTextLayout. > > In some cases, I need this scrolled text 90 degrees rotated. > > Therefore I have apply a rotate and a transformation before I call the draw > method of the text layout. > > The problem seems to be that one a rotation is in effect the result is not > is I would have expected it. > Especially the meaning of the width and heiht properties of the > IncrementalTextLayout is really strange.
This is due to IncrementalTextLayout (actually ScrollableTextLayout, its superclass) using a glScissor to clip the text to the dimensions given by width/height. The scissor is not transformed by the modelview matrix, which is why you're getting incorrect clipping. I'm afraid I don't have an easy solution for you; a general solution would require the scissor to be replaced with clipping planes. You could override ScrollableTextLayoutGroup.set_state and make this change yourself if you need to. 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 -~----------~----~----~----~------~----~------~--~---
