Hi!
I'm just starting out with Pyglet and I'm trying to get a grasp of the
coordinate system. I'd like to display a grid in my window to aid in
placement of sprites - and to do that I need to learn how to draw (a
lot of) lines!
I'm trying to draw a line but I only see the line for a split second
before it disappears. Did I miss something?
while not window.has_exit:
clock.tick()
window.dispatch_events()
pyglet.gl.glColor4f(0, 0, 0, 1.0)
pyglet.graphics.draw(2, pyglet.gl.GL_LINES, ('v2i', (0, 0, 800,
600)))
rabbyt.clear((0,0,0,1))
mySprite.render()
clockDisplay.draw()
window.flip()
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---