Hi-

I just downloaded pyglet and am not familiar at all with OpenGL.  I
tried various examples and looked at the code and am a bit confused by
multiple_windows.py and believe I found a bug - by comparing with the
code in opengl.py.  As the code was written, it only displayed two
blank (white) windows.   Here's how I changed it so that it did what I
assumed to be the desired behaviour:

# no change in code above while loop

while not (w1.has_exit or w2.has_exit):
    dt = clock.tick()
    r += 1
    if r > 360: r = 0

    w1.switch_to()
    w1.dispatch_events()
    setup()   # added this
    draw()
    w1.flip()

    w2.switch_to()
    w2.dispatch_events()
    setup()    # added this
    draw()
    w2.flip()

########
1. Is this correct?
2. Have these examples been adapted from some newbie friendly
tutorials on OpenGL that I could refer to?

Cheers,

André

P.S.  pyglet version 1.0alpha2 on a Mac with Python 2.5


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