On Mar 10, 4:57 am, Alex Holkner <[email protected]> wrote: > On Tue, Mar 10, 2009 at 2:45 PM, tazg <[email protected]> wrote: > > > yeah I was using resource.image. I somehow missed resource.texture... > > it works, but I thought the reason resource.image did that had > > something to do with compatibility - wouldn't it be better to still > > use that? Anyway, how could I deal with non-power-of-two? I'm not > > using it now but I may need to later. > > OpenGL doesn't support texture repeat with non-power-of-two textures, > so make sure you call resource.texture() for any image you intend to > do this with.
I know, I meant how could I get around the gap problem if repeating a texture created by calling resource.texture with a non-power-of-two image. Can I make a new texture by scaling it up to the next power of two? I guess I could do it manually with pil if there is no easier way. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
