Just to close this thread, the correct definition of draw_cross()
should be:

def draw_cross(win,size,thickness,color):
        win.dispatch_events()
        win.clear()
        x_center = win.width/2
        y_center = win.height/2
        glColor3f(color[0],color[1],color[2])
        glRectf(
     x_center-size*thickness/2
     ,y_center-size/2
     ,x_center+size*thickness/2
     ,y_center+size/2
     )
        glRectf(
     x_center-size/2
     ,y_center-size*thickness/2
     ,x_center+size/2
     ,y_center+size*thickness/2
     )
        win.flip()


and calls to draw_cross() should be something like:

draw_cross(win,win.width/4,.2,[.5,.5,.5])


With these changes, the original code works as expected.

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