On Mon, Mar 9, 2009 at 8:38 PM, tazg <[email protected]> wrote: > > apparently I shouldn't be using anything smaller than 256x256 as a > texture because pyglet turns it into a TextureRegion. I can make this > display properly with tex_coords but if I try to make it repeating > there are gaps between the images because it's showing the whole > 256x256 area. Of course I just want the image portion to repeat. What > is the best/fastest way?
How are you loading the texture? In particular, pyglet.resource.image packs small images into a texture altas, and returns texture regions, whereas pyglet.resource.texture should just return a texture (unless your image does not have power-of-two dimensions, in which case it may be resized to the nearest power-of-two if the hardware requires it). -- 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 -~----------~----~----~----~------~----~------~--~---
