On 2/21/08, Drew Smathers <[EMAIL PROTECTED]> wrote:
>
>
> On Wed, Feb 20, 2008 at 9:58 AM, Txema Vicente <[EMAIL PROTECTED]> wrote:
> >
> > I tried with textures, but did not know how to create textures for non
> power
> > of 2 sizes.

See Texture.create_for_size and Texture.get_region.

>
> My suggestion is: Don't.  There are plenty of creative ways to use strictly
> power-of-2 sized images - and this is the most portable solution.  Pyglet
> internally resizes images for textures

pyglet allocates the next largest valid texture size and copies the
image data into that larger texture.  Images are not stretched
(TileableTexture is an exception).

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to