123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499 |
- /**
- * @type {XR}
- */
- Navigator.prototype.xr;
- /**
- * @constructor
- */
- function XRSessionInit() {};
- /**
- * @type {Array<string>}
- */
- XRSessionInit.prototype.requiredFeatures;
- /**
- * @type {Array<string>}
- */
- XRSessionInit.prototype.optionalFeatures;
- /**
- * @constructor
- */
- function XR() {}
- /**
- * @type {?function (Event)}
- */
- XR.prototype.ondevicechanged;
- /**
- * @param {string} mode
- *
- * @return {!Promise<boolean>}
- */
- XR.prototype.isSessionSupported = function(mode) {}
- /**
- * @param {string} mode
- * @param {XRSessionInit} options
- *
- * @return {!Promise<XRSession>}
- */
- XR.prototype.requestSession = function(mode, options) {}
- /**
- * @constructor
- */
- function XRSession() {}
- /**
- * @type {XRRenderState}
- */
- XRSession.prototype.renderState;
- /**
- * @type {Array<XRInputSource>}
- */
- XRSession.prototype.inputSources;
- /**
- * @type {string}
- */
- XRSession.prototype.visibilityState;
- /**
- * @type {?function (Event)}
- */
- XRSession.prototype.onend;
- /**
- * @type {?function (XRInputSourcesChangeEvent)}
- */
- XRSession.prototype.oninputsourceschange;
- /**
- * @type {?function (XRInputSourceEvent)}
- */
- XRSession.prototype.onselectstart;
- /**
- * @type {?function (XRInputSourceEvent)}
- */
- XRSession.prototype.onselect;
- /**
- * @type {?function (XRInputSourceEvent)}
- */
- XRSession.prototype.onselectend;
- /**
- * @type {?function (XRInputSourceEvent)}
- */
- XRSession.prototype.onsqueezestart;
- /**
- * @type {?function (XRInputSourceEvent)}
- */
- XRSession.prototype.onsqueeze;
- /**
- * @type {?function (XRInputSourceEvent)}
- */
- XRSession.prototype.onsqueezeend;
- /**
- * @type {?function (Event)}
- */
- XRSession.prototype.onvisibilitychange;
- /**
- * @param {XRRenderStateInit} state
- * @return {void}
- */
- XRSession.prototype.updateRenderState = function (state) {};
- /**
- * @param {XRFrameRequestCallback} callback
- * @return {number}
- */
- XRSession.prototype.requestAnimationFrame = function (callback) {};
- /**
- * @param {number} handle
- * @return {void}
- */
- XRSession.prototype.cancelAnimationFrame = function (handle) {};
- /**
- * @return {Promise<void>}
- */
- XRSession.prototype.end = function () {};
- /**
- * @param {string} referenceSpaceType
- * @return {Promise<XRReferenceSpace>}
- */
- XRSession.prototype.requestReferenceSpace = function (referenceSpaceType) {};
- /**
- * @typedef {function(number, XRFrame): undefined}
- */
- var XRFrameRequestCallback;
- /**
- * @constructor
- */
- function XRRenderStateInit() {}
- /**
- * @type {number}
- */
- XRRenderStateInit.prototype.depthNear;
- /**
- * @type {number}
- */
- XRRenderStateInit.prototype.depthFar;
- /**
- * @type {number}
- */
- XRRenderStateInit.prototype.inlineVerticalFieldOfView;
- /**
- * @type {?XRWebGLLayer}
- */
- XRRenderStateInit.prototype.baseLayer;
- /**
- * @constructor
- */
- function XRRenderState() {};
- /**
- * @type {number}
- */
- XRRenderState.prototype.depthNear;
- /**
- * @type {number}
- */
- XRRenderState.prototype.depthFar;
- /**
- * @type {?number}
- */
- XRRenderState.prototype.inlineVerticalFieldOfView;
- /**
- * @type {?XRWebGLLayer}
- */
- XRRenderState.prototype.baseLayer;
- /**
- * @constructor
- */
- function XRFrame() {}
- /**
- * @type {XRSession}
- */
- XRFrame.prototype.session;
- /**
- * @param {XRReferenceSpace} referenceSpace
- * @return {?XRViewerPose}
- */
- XRFrame.prototype.getViewerPose = function (referenceSpace) {};
- /**
- *
- * @param {XRSpace} space
- * @param {XRSpace} baseSpace
- * @return {XRPose}
- */
- XRFrame.prototype.getPose = function (space, baseSpace) {};
- /**
- * @constructor
- */
- function XRReferenceSpace() {};
- /**
- * @type {Array<DOMPointReadOnly>}
- */
- XRReferenceSpace.prototype.boundsGeometry;
- /**
- * @param {XRRigidTransform} originOffset
- * @return {XRReferenceSpace}
- */
- XRReferenceSpace.prototype.getOffsetReferenceSpace = function(originOffset) {};
- /**
- * @type {?function (Event)}
- */
- XRReferenceSpace.prototype.onreset;
- /**
- * @constructor
- */
- function XRRigidTransform() {};
- /**
- * @type {DOMPointReadOnly}
- */
- XRRigidTransform.prototype.position;
- /**
- * @type {DOMPointReadOnly}
- */
- XRRigidTransform.prototype.orientation;
- /**
- * @type {Float32Array}
- */
- XRRigidTransform.prototype.matrix;
- /**
- * @type {XRRigidTransform}
- */
- XRRigidTransform.prototype.inverse;
- /**
- * @constructor
- */
- function XRView() {}
- /**
- * @type {string}
- */
- XRView.prototype.eye;
- /**
- * @type {Float32Array}
- */
- XRView.prototype.projectionMatrix;
- /**
- * @type {XRRigidTransform}
- */
- XRView.prototype.transform;
- /**
- * @constructor
- */
- function XRViewerPose() {}
- /**
- * @type {Array<XRView>}
- */
- XRViewerPose.prototype.views;
- /**
- * @constructor
- */
- function XRViewport() {}
- /**
- * @type {number}
- */
- XRViewport.prototype.x;
- /**
- * @type {number}
- */
- XRViewport.prototype.y;
- /**
- * @type {number}
- */
- XRViewport.prototype.width;
- /**
- * @type {number}
- */
- XRViewport.prototype.height;
- /**
- * @constructor
- */
- function XRWebGLLayerInit() {};
- /**
- * @type {boolean}
- */
- XRWebGLLayerInit.prototype.antialias;
- /**
- * @type {boolean}
- */
- XRWebGLLayerInit.prototype.depth;
- /**
- * @type {boolean}
- */
- XRWebGLLayerInit.prototype.stencil;
- /**
- * @type {boolean}
- */
- XRWebGLLayerInit.prototype.alpha;
- /**
- * @type {boolean}
- */
- XRWebGLLayerInit.prototype.ignoreDepthValues;
- /**
- * @type {boolean}
- */
- XRWebGLLayerInit.prototype.ignoreDepthValues;
- /**
- * @type {number}
- */
- XRWebGLLayerInit.prototype.framebufferScaleFactor;
- /**
- * @constructor
- *
- * @param {XRSession} session
- * @param {WebGLRenderContext|WebGL2RenderingContext} ctx
- * @param {?XRWebGLLayerInit} options
- */
- function XRWebGLLayer(session, ctx, options) {}
- /**
- * @type {boolean}
- */
- XRWebGLLayer.prototype.antialias;
- /**
- * @type {boolean}
- */
- XRWebGLLayer.prototype.ignoreDepthValues;
- /**
- * @type {number}
- */
- XRWebGLLayer.prototype.framebufferWidth;
- /**
- * @type {number}
- */
- XRWebGLLayer.prototype.framebufferHeight;
- /**
- * @type {WebGLFramebuffer}
- */
- XRWebGLLayer.prototype.framebuffer;
- /**
- * @param {XRView} view
- * @return {?XRViewport}
- */
- XRWebGLLayer.prototype.getViewport = function(view) {};
- /**
- * @param {XRSession} session
- * @return {number}
- */
- XRWebGLLayer.prototype.getNativeFramebufferScaleFactor = function (session) {};
- /**
- * @constructor
- */
- function WebGLRenderingContextBase() {};
- /**
- * @return {Promise<void>}
- */
- WebGLRenderingContextBase.prototype.makeXRCompatible = function () {};
- /**
- * @constructor
- */
- function XRInputSourcesChangeEvent() {};
- /**
- * @type {Array<XRInputSource>}
- */
- XRInputSourcesChangeEvent.prototype.added;
- /**
- * @type {Array<XRInputSource>}
- */
- XRInputSourcesChangeEvent.prototype.removed;
- /**
- * @constructor
- */
- function XRInputSourceEvent() {};
- /**
- * @type {XRFrame}
- */
- XRInputSourceEvent.prototype.frame;
- /**
- * @type {XRInputSource}
- */
- XRInputSourceEvent.prototype.inputSource;
- /**
- * @constructor
- */
- function XRInputSource() {};
- /**
- * @type {Gamepad}
- */
- XRInputSource.prototype.gamepad;
- /**
- * @type {XRSpace}
- */
- XRInputSource.prototype.gripSpace;
- /**
- * @type {string}
- */
- XRInputSource.prototype.handedness;
- /**
- * @type {string}
- */
- XRInputSource.prototype.profiles;
- /**
- * @type {string}
- */
- XRInputSource.prototype.targetRayMode;
- /**
- * @type {XRSpace}
- */
- XRInputSource.prototype.targetRaySpace;
- /**
- * @constructor
- */
- function XRSpace() {};
- /**
- * @constructor
- */
- function XRPose() {};
- /**
- * @type {XRRigidTransform}
- */
- XRPose.prototype.transform;
- /**
- * @type {boolean}
- */
- XRPose.prototype.emulatedPosition;
|