Something I wanted in SDL3 for a long time just landed; you can make the SDL window just take up the whole browser window in Emscripten now. So instead of this: icculus.org/~icculus/ems... You can do this: icculus.org/~icculus/ems... Feels more friendly to browser games.
Post
icculus.orgEmscripten-Generated Code
I don't know if it's built-in to Emscripten's ports yet (you probably can't do `-s USE_SDL=3`), but you can build SDL3 from source with Emscripten's compiler and CMake, and link against it. Or cheat, like I did with DirkSimple/SDL3 (Starting around the 1:18:00 point) youtu.be/V_MWXDr3Nu4?...
youtu.bePorting DirkSimple from SDL2 to SDL3YouTube video by Ryan C. Gordon (icculus)
SDL3 should be working in Emscripten ports, including emcc -sUSE_SDL=3 Tested here: github.com/emscripten-c... Uses SDL 3.2.22 Let us know if something doesn't work!
github.comemscripten/test/test_browser.py at b4a32f4e386c0b852f62a73e749ab34c76d0b88f · emscripten-core/emscriptenEmscripten: An LLVM-to-WebAssembly Compiler. Contribute to emscripten-core/emscripten development by creating an account on GitHub.
No replies yet.