Hi Serdar, The textures for the text classes are handled a bit differently than Sprite textures. I've not really studied the pyglet.text module yet, but you can kinda see how things work by looking through the code. The pyglet.text.layout.py in particular has some interesting bits in there about the textures. Sorry I can't offer more advice.
-Ben On Tuesday, December 1, 2015 at 7:50:35 AM UTC+9, Serdar Yegulalp wrote: > > I just started working with Pyglet for some simple game programming, and > I'm enjoying it so far. > > I was able to get Pyglet working with fragment shaders to create an > old-school 8-bit color-cycling/palette-swapping effect. However, I've > noticed something peculiar: the effect only works for sprites (I haven't > tested blitted objects). It doesn't work for Labels, and I suspect that's > because they're being drawn somewhere else. > > I'd like to be able to have Labels and sprites on the same texture, or at > the very least get a reference to the Label texture so I can modify it as > well. What would be the best (least obtrusive, most efficient) way to do > this? > -- 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.
