I'm not quite sure, but the implementation may use the 
ARB_texture_rectangle extension for non-power of 2 textures. This extension 
specifies texture coordinates to be pixel based/non-normalized.
So I guess the pixel based texture coordinates for non-power of 2 textures 
are probably intentional (to conform with the extension).
Note that such textures do not support mipmap filtering (if you need that).


Andy


Am Sonntag, 20. November 2011 05:25:35 UTC+1 schrieb Gary Daniels:
>
>
> I noticed that if I create a TextureAtlas with a power of 2 size
> (1024x1024), the tex_coords of a 16x16 image added are:
>
> (0.0, 0.0, 0.0, 0.015625, 0.0, 0.0, 0.015625, 0.015625, 0.0, 0.0,
> 0.015625, 0.0)
>
> With a size of 1023x1023 (or any non-power of 2), they are pixel
> based:
>
> (0.0, 0.0, 0.0, 16.0, 0.0, 0.0, 16.0, 16.0, 0.0, 0.0, 16.0, 0.0)
>
> Is this intentional?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/pyglet-users/-/OazmNDAHeIwJ.
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