Tristam MacDonald wrote:
> On Thu, Jun 4, 2009 at 3:10 PM, Tristam MacDonald 
> <[email protected] <mailto:[email protected]>> wrote:
>
>     I fixed the json support in SVN, as well as adding relative paths
>     for theme elements, and allowing themes to be loaded from zip
>     archives.
>
>
> Batching is proving to be a right pain to implement, primarily due to 
> ordering and the batching properties of pyglet's own text classes.
>
> However, I am making good progress towards full batching support, and 
> in preparation for that, I have unified themes into single images in 
> the SVN trunk.
>
> If you are playing around with themes, please grab this version from 
> SVN, as the older themes will not be supported in the future.

Something in this version caused the caret in a TextInput widget to stop 
drawing.   (You can still edit, but just can't see *where* you are editing.)

I've tracked it down to this point:   The existence of an enabled 
texture when calling IncrementalTextLayout.draw() causes the failure. 

Here's how to demonstrate this:  In widget.py, surround the e.draw() 
with a disable and re-enable of GL_TEXTURE_2D, and everything seems to 
work well.  (I won't claim this is a proper solution, but it does show 
where the problem is.)

            if isinstance(e, pyglet.text.layout.IncrementalTextLayout):
                glDisable(GL_TEXTURE_2D)
            e.draw()
            if isinstance(e, pyglet.text.layout.IncrementalTextLayout):
                glEnable(GL_TEXTURE_2D)

If it matters, I'm using pyglet version 1.1.2 on Linux.


Hoping this helps

Gary Herron



>
> -- 
> Tristam MacDonald
> http://swiftcoder.wordpress.com/
>
> >


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