Window::request_animation_frame with callback with an argument? #4012
Answered
by
daxpedda
g-braeunlich
asked this question in
Q&A
-
Hello guys. |
Beta Was this translation helpful? Give feedback.
Answered by
daxpedda
Jul 15, 2024
Replies: 1 comment
-
Indeed, you are free to define parameters yourself in In this case |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
g-braeunlich
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Indeed, you are free to define parameters yourself in
Closure
s.In this case
Closure<dyn FnMut(f64)>
would be appropriate.