Yeah, it looks like what's happening is text is rendered as alpha channel plus whatever the vertex color is at that moment, so the colors can be altered on the fly without having to recreate everything.
BTW, looks like other folks were contemplating roughly similar things: https://groups.google.com/forum/#!topic/pyglet-users/Utwed5VTB4o The sprite sheet solution might also work, but I'm concerned about performance -- what happens when you try to put together a whole paragraph of text? Each character would end up being a different sprite, wouldn't it? (Are batched sprites handled as a single texture for performance's sake?) What I might do is a combination of solutions -- take images from a sprite sheet, copy them to a texture, and then render THAT as one big sprite with all the colors I need on it. -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
