How to keep pyglet from clearing the screen ?

Posted by mayasky on Stack Overflow See other posts from Stack Overflow or by mayasky
Published on 2009-11-14T16:52:02Z Indexed on 2010/03/19 7:01 UTC
Read the original article Hit count: 1147

Filed under:
|

I want to draw a scene and sequentially add lines to it. But pyglet keeps updating without control :( , so all I get is blinks

from pyglet.gl import *

window=pyglet.window.Window()

def drawline():
    ...

@window.event
def on_draw():
    drawline()

pyglet.app.run()

should I change the decorator(if there exist options) or what? Thanks!

© Stack Overflow or respective owner

Related posts about python

Related posts about pyglet