On Thu, Jul 23, 2009 at 3:25 AM, Lynx <[email protected]> wrote: > > On Jul 21, 10:10 am, Nicolas Rougier <[email protected]> > wrote: > > One 'trick' that might interest kytten or simplui is to replace > > editable entries with an 'ellipsized' label when they're not edited, > > it makes things faster (see entry.py sources). > > A good idea. :) A prototype of this does speed kytten up decently > (from about 300 fps to 450) for me, but I'm pondering the best > solution to a field that's longer than the text entry box will allow. > Ellipsizing seems a bit awkward, but it's nontrivial to implement > something that'll draw partial glyphs, cut off by the right side of > the text entry box.
I just render one character past the end of the area, and use the scissor test to clip them. -- 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 -~----------~----~----~----~------~----~------~--~---
