Skip to content

Commit

Permalink
Merge a7bcc2e into 490df60
Browse files Browse the repository at this point in the history
  • Loading branch information
EnigmaCurry committed Sep 1, 2020
2 parents 490df60 + a7bcc2e commit 04efe81
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/examples/integrations_pyglet.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,13 @@ def update(dt):
imgui.text_colored("Eggs", 0.2, 1., 0.)
imgui.end()

@window.event
def on_draw():
update(1/60.0)
def draw(dt):
update(dt)
window.clear()
imgui.render()
impl.render(imgui.get_draw_data())

pyglet.clock.schedule_interval(draw, 1/120.)
pyglet.app.run()
impl.shutdown()

Expand Down

0 comments on commit 04efe81

Please sign in to comment.