mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-11 23:52:03 +03:00
2b29650920
* 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>
8 lines
150 B
JavaScript
8 lines
150 B
JavaScript
import * as wasm from "webxr";
|
|
|
|
var xrApp = new wasm.XrApp();
|
|
xrApp.init()
|
|
.then(res => {
|
|
console.log(res);
|
|
xrApp.start();
|
|
}); |