Skip to content

Update the window's contents? #2407

Answered by kchibisov
tseli0s asked this question in Q&A
Discussion options

You must be logged in to vote

winit doesn't draw and it doesn't provide calls to the graphics platform api, unlike glfw/sdl. The RedrawRequested event is simply to tell you that you should draw, e.g. due to resize or some other system event. How you'd draw is entirely up to you. You can use OpenGL (with glutin) or Vulkan(with ash) and call their routines to present the buffer.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tseli0s
Comment options

Answer selected by tseli0s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants