/wasm-wxwidgets-demo

Proof-of-concept: Render the same OpenGL scene with both wxWidgets and WebAssembly frontends.

Primary LanguageC++MIT LicenseMIT

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

wx

Requirements

  1. Installed emsdk with configured environment.
  2. wxWidgets and OpenGL libraries. For Debian 10 use following command to install:
apt install libwxgtk3.0-dev libglew-dev libgl1-mesa-dev

Building and running

git clone https://github.com/jubnzv/wasm-wxwidgets-proof-of-concept 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/