Add Emscripten support for SDL2 and SDL3 surface examples
This commit is contained in:
@@ -33,3 +33,13 @@ c++ `sdl2-config --cflags` -I .. -I ../.. -I ../../backends \
|
||||
main.cpp ../../backends/imgui_impl_sdl2.cpp ../../backends/imgui_impl_sdlsurface2.cpp ../../imgui*.cpp \
|
||||
`sdl2-config --libs`
|
||||
```
|
||||
|
||||
## Emscripten
|
||||
|
||||
Use `Makefile.emscripten`:
|
||||
```sh
|
||||
source /path/to/emsdk/emsdk_env.sh
|
||||
make -f Makefile.emscripten
|
||||
```
|
||||
|
||||
This makes `web/index.html`, `web/index.js`, and `web/index.wasm`.
|
||||
|
||||
Reference in New Issue
Block a user