On Jan 14, 1:29 pm, Zack Buhman <[email protected]> wrote: > I could figure that much out, but I couldn't quite understand how to do this > with Texture.__init__ like my example showed.
pyglet.image.Texture's __init__ method does not actually create a texture in the OpenGL sense. You need to allocate a block of memory for the texels, bind your texture id, and then call glTexImage2d to do that. Or you can use Texture's create method which takes care of all of this for you.
-- 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.
