Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement request_draw #78

Merged
merged 2 commits into from
Apr 3, 2020
Merged

Implement request_draw #78

merged 2 commits into from
Apr 3, 2020

Conversation

almarklein
Copy link
Collaborator

@almarklein almarklein commented Apr 3, 2020

Closes #63

  • For qt this is easy, because it's an alias for update().
  • For glfw it's more involved, because glfw does not provide an event loop. So I've made a function that one must call from your glfw mainloop, which will redraw all canvases that are invalidated.
  • Updated the glfw tests (they check that multiple events or draw requests result in a single draw)
  • The glfw example has a more sophisticated event loop that does not turn your laptop into a heater,

@almarklein almarklein mentioned this pull request Apr 3, 2020
34 tasks
wgpu/gui/flexx.py Outdated Show resolved Hide resolved
@Korijn
Copy link
Collaborator

Korijn commented Apr 3, 2020

LGTM

@almarklein almarklein merged commit bb72a1c into master Apr 3, 2020
@almarklein almarklein deleted the request_draw branch April 3, 2020 12:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Canvas method to request a new draw
2 participants