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>
This commit is contained in:
kevthecoder
2020-03-17 14:14:05 +00:00
committed by GitHub
parent 3c85ae1fbf
commit 2b29650920
49 changed files with 3109 additions and 0 deletions

8
examples/webxr/webxr.js Normal file
View File

@ -0,0 +1,8 @@
import * as wasm from "webxr";
var xrApp = new wasm.XrApp();
xrApp.init()
.then(res => {
console.log(res);
xrApp.start();
});