Over the last several months, Daft-Freak and gsathya have done great work
to port SDL2 (see https://github.com/kripken/emscripten/issues/2404 ). You
can see that in use already in the recent Humble Bundle,

https://www.humblebundle.com/?asmjs_bundle

To make SDL2 easier to use (until now it was in a separate repo you had to
grab and build), we've created Emscripten Ports, now on the incoming
branch, documented here:

http://kripken.github.io/emscripten-site/docs/compiling/Building-Projects.html#emscripten-ports

All Ports are is a set of repos on github that emcc knows about and can
fetch and build. If you do something like

./emcc tests/sdl2glshader.c -s USE_SDL=2 -s LEGACY_GL_EMULATION=1 -o
sdl2.html

on the incoming branch, then USE_SDL=2 makes it download and build SDL2 for
you.

Currently SDL2 and SDL2_image are in the ports repos. As mentioned on the
docs page, it is fairly easy to add more, if there are other common
libraries people are using.

There are tests for both SDL2 and Ports in the test suite now, but please
test both of those out, issues are very possible.

- Alon

-- 
You received this message because you are subscribed to the Google Groups 
"emscripten-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to