wasm-bindgen/examples/webxr
Liam Murphy e322e6fb8b
Use Closure::new in examples (#2991)
There isn't much of a reason to use `Closure::wrap` over `Closure::new` anymore, so this changes `wasm-bindgen`'s examples to use `Closure::new` as the recommended method of creating closures.
2022-07-13 08:55:44 -05:00
..
src Use Closure::new in examples (#2991) 2022-07-13 08:55:44 -05:00
Cargo.toml Bump to 0.2.81 (#2935) 2022-06-14 10:06:47 -05:00
index.html Fix canvas is not a self closing tag. (#2408) 2021-01-04 09:31:01 -06:00
index.js Webxrdevice (#2000) 2020-03-17 09:14:05 -05:00
package.json Upgrade the webpack-based examples' npm dependencies (move to webpack 5) (#2651) 2021-08-10 09:43:42 -05:00
README.md Webxrdevice (#2000) 2020-03-17 09:14:05 -05:00
webpack.config.js Upgrade the webpack-based examples' npm dependencies (move to webpack 5) (#2651) 2021-08-10 09:43:42 -05:00
webxr.js Upgrade the webpack-based examples' npm dependencies (move to webpack 5) (#2651) 2021-08-10 09:43:42 -05:00

WebXR Example

View documentation for this example online or View compiled example online

You can build the example locally with:

# Note: Requires unstable flag whilst WebXR in development
$ RUSTFLAGS=--cfg=web_sys_unstable_apis npm run serve

and then visiting http://localhost:8080 in a browser should run the example!