slint/examples/graphicstest
Simon Hausmann a2c5e66bee Rename gl renderer backend package
Use a full prefixed name (sixtyfps_rendering_backend_gl) to ensure that
the created static lib can be installed without file conflicts (libgl is
not a unique name).
2020-06-04 15:30:41 +02:00
..
src Rename gl renderer backend package 2020-06-04 15:30:41 +02:00
.gitignore Ignore some generated files 2020-05-11 08:59:39 +02:00
Cargo.toml Rename gl renderer backend package 2020-06-04 15:30:41 +02:00
index.html Fix wasm build 2020-05-07 15:07:29 +02:00
logo.png Start with image rendering 2020-05-05 18:20:21 +02:00
README Add README that explains how to try the wasm build 2020-05-07 15:07:29 +02:00

To try the WASM build, use these steps:

cargo build --target wasm32-unknown-unknown --bin graphicstest
cd examples/graphicstest
mkdir -p generated
wasm-bindgen ../../target/wasm32-unknown-unknown/debug/graphicstest.wasm --out-dir generated --no-modules
cp index.html generated/

Then serve for example with

cd generated/
python -m SimpleHTTPServer

and go to

http://localhost:8000/index.html