wasm-bindgen/examples/webxr
kevthecoder 2b29650920
Webxrdevice (#2000)
* crates/web-sys/webidls/enabled/WebXRDevice.webidl

* Add WebXR Web IDL.

* Add WebXr example.

* Workaround in WebXR for FrozenArray and XRWebGLLayer constructor.

* Remove commented code.

* Attempt to improve WebXr example.

* Add WebXr as unstable WebIDL.

* Fixes for XRWebGLLayer.

* Tidy up WebXR example code.

* Update WebXr example docs.

Co-authored-by: Kev Kirkland <kev.kirkland@elucidata.co.uk>
2020-03-17 09:14:05 -05:00
..
src Webxrdevice (#2000) 2020-03-17 09:14:05 -05:00
Cargo.toml Webxrdevice (#2000) 2020-03-17 09:14:05 -05:00
index.html Webxrdevice (#2000) 2020-03-17 09:14:05 -05:00
index.js Webxrdevice (#2000) 2020-03-17 09:14:05 -05:00
package.json Webxrdevice (#2000) 2020-03-17 09:14:05 -05:00
README.md Webxrdevice (#2000) 2020-03-17 09:14:05 -05:00
webpack.config.js Webxrdevice (#2000) 2020-03-17 09:14:05 -05:00
webxr.js Webxrdevice (#2000) 2020-03-17 09:14:05 -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!