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