I forgot one detail, when I try rectangle with our without force_rectangle I get a single color texture (but that is the correct dimensions)
On Jul 23, 6:20 pm, Tristam MacDonald <[email protected]> wrote: > On Thu, Jul 23, 2009 at 4:56 PM, sevenseeker <[email protected]> wrote: > > > I am creating a single square and when I apply a texture to it, the > > image is squashed against the bottom right. > > > Can someone please help me with this and save me from having to start > > over with learning another toolkit? > > > Original Image: http://imagebin.ca/view/Us6eHwt.html > > Rendered Window: http://imagebin.ca/view/nT7GdFv.html > > Code: http://paste.pocoo.org/show/130411/ > > > Thanks for any assistance :) > > Jason > > OpenGL textures (at > least as implemented by pyglet) are always square. However, the loader > should automatically make the texture square, and then return a > TextureRegion instead of a Texture. The TextureRegion can be queried for the > correct texture coordinate, rather than using the default coordinates of 0 > and 1. > > See the API docs for details of the correct function. Alternately, > image.blit() should manage this itself. > -- > Tristam MacDonaldhttp://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 -~----------~----~----~----~------~----~------~--~---
