On Jan 18, 2008 1:16 AM, infinite8s <[EMAIL PROTECTED]> wrote:
>
>
> I'm trying to use pyglet.image on Mac OS X (ppc), so I assume it's
> using Quicktime to load the image. I would like to use the image in an
> OpenGL texture, but it only seems to return ARGB images, while I don't
> think OpenGL can take ARGB formatted images (all I can see is GL_RGBA
> and GL_BGRA). Is there a way to force the image loader to give me RGBA
> formatted images?

pyglet uses OpenGL extensions available on every Mac to provide ARGB
data to OpenGL.  See the pyglet/image/__init__.py source if you're
interested in how this happens.  If you really want an RBGA image, you
can use ImageData to do the conversion; see the image section of the
programming guide.

Alex.

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