-
Notifications
You must be signed in to change notification settings - Fork 473
Missing SysWMinfo for Windows #1263
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
Comments
You need to compile your own sdl2-sys bindings with the "use-bindgen" feature, by default they are Linux variant (not that we don't want to include all of the platforms, but SDL auto-detects the host platform so we can't have generic sdl2-sys bindings). |
I've got an error:
In the meantime, I think there are not a lot platform-specific structures (I actually see only two - |
I aplogise for the necro, just posting this in the case anyone else needs to retrieve the HWND: |
Usually in C/C++ code you are able to retrive WinAPI window handle like this:
But it's impossible in Rust:
It seems that Rust sdl2-sys bindings missing platform-specific union values and on any platform offer only Linux union variants.
The text was updated successfully, but these errors were encountered: