On Mar 31, 5:48 pm, George Oliver <[email protected]> wrote:
> In experimeting with creating simple colored shapes with pyglet.image
> (rather than drawing with pyglet.graphics or in GL directly) I've run
> into a problem I can't figure out, dealing with blitting an image,
> that has been blitted into, into another texture.


Well, as usual I found -a- solution just a little while after
posting...what I did was this:

        self.image = self.texture.get_image_data()

Putting that in the Block class at the end of the constructor. If I
understand this right when you blit_into with a texture the alpha
channel isn't preserved, so my color changes weren't rendering with
full opacity -- is that right?

Anyway, I'm also curious if there's a relatively simple way to do this
with GL calls as well, or perhaps pyglet.graphics?
--~--~---------~--~----~------------~-------~--~----~
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