On 3/29/2010 11:59 AM, Mikael Lind wrote:

I've changed your script a little so that it shows something on the screen.



Wow, that really helps, thanks! Another mistake I realized I was making was setting glLoadIdentity in the set_state of the CustomGroup.

In experimenting it seems like I can substitute a glLoadIdentity in place of the Pop/Push of the matrix, like:

@window.event
def on_draw():
    window.clear()
    glLoadIdentity()
    glTranslatef(-W_W/2, -W_H/2, -1000)
    batch.draw()

Is that doing the same thing by resetting the matrix, or is that not recommended?


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