What you need to remember is that pyglet uses OpenGL which is effectively a
state machine. This means it will "remember" certain things, otherwise you'd
have to specify them all every time you made an OpenGL call. In other words,
you tell it things like the current colour, texture, drawing mode, etc, and
it remembers them.

In this case, your problem will almost certainly be solved by resetting the
colour to white prior to blitting.

--- Rod

On Feb 13, 2008 1:38 PM, Jeff Hester <[EMAIL PROTECTED]> wrote:

>
> This is great!  Thanks for sharing.  I'm running into a issue
> (probably a bug in my brain).  I'm trying to display an image (based
> on the excellent image_display.py that's included with pyglet.)  From
> my code I'm just importing from primitives.py and trying to draw
> objects on top of the image.  I'm using default objects from the
> "main" area of primitives.py.  When I blit my background image with
> the objects to the screen it is always tinted the same color as the
> last primitive I drew and makes the whole window that color.  I know
> there is something simple I'm missing.  Can someone please steer me on
> the right path?  Thank you greatly.
> >
>

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