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

Investigate SDL2 WebAssembly support #18

Open
potatotech opened this issue Nov 20, 2021 · 1 comment
Open

Investigate SDL2 WebAssembly support #18

potatotech opened this issue Nov 20, 2021 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@potatotech
Copy link
Collaborator

The library does not compile when targeting wasm32-unknown-unknown and using SDL2. The C library can compile to WASM via Emscripten, so it should be possible to make it work.

@potatotech potatotech added the enhancement New feature or request label Nov 20, 2021
@potatotech
Copy link
Collaborator Author

potatotech commented Nov 21, 2021

The SDL2 backend works when targeting wasm32-unknown-emscripten, so no changes are necessary unless users specifically need to target wasm32-unknown-unknown.

EDIT: Compilation fails when bundled-sdl2 is enabled.

@potatotech potatotech reopened this Nov 21, 2021
@potatotech potatotech added the help wanted Extra attention is needed label Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant