wasm-wxwidgets-demo
wasm-wxwidgets-demo copied to clipboard
POC: Render the same OpenGL scene using wxWidgets and WebAssembly.
wasm-wxwidgets-demo
Cross-platform GUI application using OpenGL to render the same graphic scene on both native UI (wxWidgets) and web (WASM) frontends.
Screenshot
Requirements
- Installed emsdk with configured environment.
- wxWidgets and OpenGL libraries. For Debian 10 use following command to install:
apt install libwxgtk3.0-dev libglew-dev libgl1-mesa-dev
For Ubuntu 20.10, use the following command:
apt install libwxgtk3.0-gtk3-dev libglew-dev libgl1-mesa-dev
Building and running
git clone https://github.com/jubnzv/wasm-wxwidgets-demo example
pushd example/src/
make
popd
To run wx desktop application:
./src/wx
To run web frontend run:
cd static
python -m SimpleHTTPServer 8000
See result at http://localhost:8000/