This code uses one of three ways to load images into GL textures -
  1. Using PIL to load the image data and then sending this to the
graphics card with glTexture2D
  2. Using pyglet to load the image data and sending it to the
graphics card with glTexture2D
  3. Using the texture functions in pyglet

1 and 2 let me use the GL_ARB_TEXTURE_RECTANGLE extension if
available, so I don't have to create symmetric power of 2 textures. It
would nice if pyglet could support this (I know - "it would be nice"
means I should probably add it to pyglet myself). However, pyglet is
loading the texture in ARGB format on my Mac, which I can't send
directly to the graphics card (or I don't know how). Even when using
option 3 the pixel format displays incorrectly. Anybody have any
ideas?

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