did you try this aswell: https://github.com/ghaerr/microwindows
it can be used as drop in replacement for libX11 and understands many backends.
I used this for android some time ago, but there seems to be webasm support aswell.
BR
Giri
may64...@gmail.com schrieb am Samstag, 12. Dezember 2020 um 00:42:27 UTC+1:
updated patch
The previous didn't track the Fl_PicoSDL_Image_Surface_Driver.cxx
The generated .html file can be run using:
emrun fltk.html
Or through any server application.
Using cmake, you would have to pass "
-s WASM=1 -s USE_SDL=2 -s USE_FREETYPE=1" as CMAKE_CXX_FLAGS and "--shell-file shell_minimal.html" as CMAKE_EXE_LINKER_FLAGS. Then:
Comments are owned by the poster. All other content is copyright 1998-2025 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.