Debian Codegraph @

modules/webxr/native/webxr.externs.js

raw symbols SCIP
1 /*
2 * WebXR Device API
3 */
4
5 /**
6 * @type {XR}
7 */
8 Navigator.prototype.xr;
9
10 /**
11 * @constructor
12 */
13 function XRSessionInit() {};
14
15 /**
16 * @type {Array<string>}
17 */
18 XRSessionInit.prototype.requiredFeatures;
19
20 /**
21 * @type {Array<string>}
22 */
23 XRSessionInit.prototype.optionalFeatures;
24
25 /**
26 * @constructor
27 */
28 function XR() {}
29
30 /**
31 * @type {?function (Event)}
32 */
33 XR.prototype.ondevicechanged;
34
35 /**
36 * @param {string} mode
37 *
38 * @return {!Promise<boolean>}
39 */
40 XR.prototype.isSessionSupported = function(mode) {};
41
42 /**
43 * @param {string} mode
44 * @param {XRSessionInit} options
45 *
46 * @return {!Promise<XRSession>}
47 */
48 XR.prototype.requestSession = function(mode, options) {};
49
50 /**
51 * @constructor
52 */
53 function XRSession() {}
54
55 /**
56 * @type {XRRenderState}
57 */
58 XRSession.prototype.renderState;
59
60 /**
61 * @type {Array<XRInputSource>}
62 */
63 XRSession.prototype.inputSources;
64
65 /**
66 * @type {string}
67 */
68 XRSession.prototype.visibilityState;
69
70 /**
71 * @type {?number}
72 */
73 XRSession.prototype.frameRate;
74
75 /**
76 * @type {?Float32Array}
77 */
78 XRSession.prototype.supportedFrameRates;
79
80 /**
81 * @type {Array<string>}
82 */
83 XRSession.prototype.enabledFeatures;
84
85 /**
86 * @type {string}
87 */
88 XRSession.prototype.environmentBlendMode;
89
90 /**
91 * @type {?function (Event)}
92 */
93 XRSession.prototype.onend;
94
95 /**
96 * @type {?function (XRInputSourcesChangeEvent)}
97 */
98 XRSession.prototype.oninputsourceschange;
99
100 /**
101 * @type {?function (XRInputSourceEvent)}
102 */
103 XRSession.prototype.onselectstart;
104
105 /**
106 * @type {?function (XRInputSourceEvent)}
107 */
108 XRSession.prototype.onselect;
109
110 /**
111 * @type {?function (XRInputSourceEvent)}
112 */
113 XRSession.prototype.onselectend;
114
115 /**
116 * @type {?function (XRInputSourceEvent)}
117 */
118 XRSession.prototype.onsqueezestart;
119
120 /**
121 * @type {?function (XRInputSourceEvent)}
122 */
123 XRSession.prototype.onsqueeze;
124
125 /**
126 * @type {?function (XRInputSourceEvent)}
127 */
128 XRSession.prototype.onsqueezeend;
129
130 /**
131 * @type {?function (Event)}
132 */
133 XRSession.prototype.onvisibilitychange;
134
135 /**
136 * @param {XRRenderStateInit} state
137 * @return {void}
138 */
139 XRSession.prototype.updateRenderState = function (state) {};
140
141 /**
142 * @param {XRFrameRequestCallback} callback
143 * @return {number}
144 */
145 XRSession.prototype.requestAnimationFrame = function (callback) {};
146
147 /**
148 * @param {number} handle
149 * @return {void}
150 */
151 XRSession.prototype.cancelAnimationFrame = function (handle) {};
152
153 /**
154 * @return {Promise<void>}
155 */
156 XRSession.prototype.end = function () {};
157
158 /**
159 * @param {string} referenceSpaceType
160 * @return {Promise<XRReferenceSpace>}
161 */
162 XRSession.prototype.requestReferenceSpace = function (referenceSpaceType) {};
163
164 /**
165 * @param {number} rate
166 * @return {Promise<undefined>}
167 */
168 XRSession.prototype.updateTargetFrameRate = function (rate) {};
169
170 /**
171 * @typedef {function(number, XRFrame): undefined}
172 */
173 var XRFrameRequestCallback;
174
175 /**
176 * @constructor
177 */
178 function XRRenderStateInit() {}
179
180 /**
181 * @type {number}
182 */
183 XRRenderStateInit.prototype.depthNear;
184
185 /**
186 * @type {number}
187 */
188 XRRenderStateInit.prototype.depthFar;
189
190 /**
191 * @type {number}
192 */
193 XRRenderStateInit.prototype.inlineVerticalFieldOfView;
194
195 /**
196 * @type {?XRWebGLLayer}
197 */
198 XRRenderStateInit.prototype.baseLayer;
199
200 /**
201 * @constructor
202 */
203 function XRRenderState() {};
204
205 /**
206 * @type {number}
207 */
208 XRRenderState.prototype.depthNear;
209
210 /**
211 * @type {number}
212 */
213 XRRenderState.prototype.depthFar;
214
215 /**
216 * @type {?number}
217 */
218 XRRenderState.prototype.inlineVerticalFieldOfView;
219
220 /**
221 * @type {?XRWebGLLayer}
222 */
223 XRRenderState.prototype.baseLayer;
224
225 /**
226 * @constructor
227 */
228 function XRFrame() {}
229
230 /**
231 * @type {XRSession}
232 */
233 XRFrame.prototype.session;
234
235 /**
236 * @param {XRReferenceSpace} referenceSpace
237 * @return {?XRViewerPose}
238 */
239 XRFrame.prototype.getViewerPose = function (referenceSpace) {};
240
241 /**
242 * @param {XRSpace} space
243 * @param {XRSpace} baseSpace
244 * @return {XRPose}
245 */
246 XRFrame.prototype.getPose = function (space, baseSpace) {};
247
248 /**
249 * @param {Array<XRSpace>} spaces
250 * @param {XRSpace} baseSpace
251 * @param {Float32Array} transforms
252 * @return {boolean}
253 */
254 XRFrame.prototype.fillPoses = function (spaces, baseSpace, transforms) {};
255
256 /**
257 * @param {Array<XRJointSpace>} jointSpaces
258 * @param {Float32Array} radii
259 * @return {boolean}
260 */
261 XRFrame.prototype.fillJointRadii = function (jointSpaces, radii) {};
262
263 /**
264 * @constructor
265 */
266 function XRReferenceSpace() {};
267
268 /**
269 * @type {Array<DOMPointReadOnly>}
270 */
271 XRReferenceSpace.prototype.boundsGeometry;
272
273 /**
274 * @param {XRRigidTransform} originOffset
275 * @return {XRReferenceSpace}
276 */
277 XRReferenceSpace.prototype.getOffsetReferenceSpace = function(originOffset) {};
278
279 /**
280 * @type {?function (Event)}
281 */
282 XRReferenceSpace.prototype.onreset;
283
284 /**
285 * @constructor
286 */
287 function XRRigidTransform() {};
288
289 /**
290 * @type {DOMPointReadOnly}
291 */
292 XRRigidTransform.prototype.position;
293
294 /**
295 * @type {DOMPointReadOnly}
296 */
297 XRRigidTransform.prototype.orientation;
298
299 /**
300 * @type {Float32Array}
301 */
302 XRRigidTransform.prototype.matrix;
303
304 /**
305 * @type {XRRigidTransform}
306 */
307 XRRigidTransform.prototype.inverse;
308
309 /**
310 * @constructor
311 */
312 function XRView() {}
313
314 /**
315 * @type {string}
316 */
317 XRView.prototype.eye;
318
319 /**
320 * @type {Float32Array}
321 */
322 XRView.prototype.projectionMatrix;
323
324 /**
325 * @type {XRRigidTransform}
326 */
327 XRView.prototype.transform;
328
329 /**
330 * @constructor
331 */
332 function XRViewerPose() {}
333
334 /**
335 * @type {Array<XRView>}
336 */
337 XRViewerPose.prototype.views;
338
339 /**
340 * @constructor
341 */
342 function XRViewport() {}
343
344 /**
345 * @type {number}
346 */
347 XRViewport.prototype.x;
348
349 /**
350 * @type {number}
351 */
352 XRViewport.prototype.y;
353
354 /**
355 * @type {number}
356 */
357 XRViewport.prototype.width;
358
359 /**
360 * @type {number}
361 */
362 XRViewport.prototype.height;
363
364 /**
365 * @constructor
366 */
367 function XRWebGLLayerInit() {};
368
369 /**
370 * @type {boolean}
371 */
372 XRWebGLLayerInit.prototype.antialias;
373
374 /**
375 * @type {boolean}
376 */
377 XRWebGLLayerInit.prototype.depth;
378
379 /**
380 * @type {boolean}
381 */
382 XRWebGLLayerInit.prototype.stencil;
383
384 /**
385 * @type {boolean}
386 */
387 XRWebGLLayerInit.prototype.alpha;
388
389 /**
390 * @type {boolean}
391 */
392 XRWebGLLayerInit.prototype.ignoreDepthValues;
393
394 /**
395 * @type {boolean}
396 */
397 XRWebGLLayerInit.prototype.ignoreDepthValues;
398
399 /**
400 * @type {number}
401 */
402 XRWebGLLayerInit.prototype.framebufferScaleFactor;
403
404 /**
405 * @constructor
406 *
407 * @param {XRSession} session
408 * @param {WebGLRenderContext|WebGL2RenderingContext} ctx
409 * @param {?XRWebGLLayerInit} options
410 */
411 function XRWebGLLayer(session, ctx, options) {}
412
413 /**
414 * @type {boolean}
415 */
416 XRWebGLLayer.prototype.antialias;
417
418 /**
419 * @type {boolean}
420 */
421 XRWebGLLayer.prototype.ignoreDepthValues;
422
423 /**
424 * @type {number}
425 */
426 XRWebGLLayer.prototype.framebufferWidth;
427
428 /**
429 * @type {number}
430 */
431 XRWebGLLayer.prototype.framebufferHeight;
432
433 /**
434 * @type {WebGLFramebuffer}
435 */
436 XRWebGLLayer.prototype.framebuffer;
437
438 /**
439 * @param {XRView} view
440 * @return {?XRViewport}
441 */
442 XRWebGLLayer.prototype.getViewport = function(view) {};
443
444 /**
445 * @param {XRSession} session
446 * @return {number}
447 */
448 XRWebGLLayer.prototype.getNativeFramebufferScaleFactor = function (session) {};
449
450 /**
451 * @constructor
452 */
453 function WebGLRenderingContextBase() {};
454
455 /**
456 * @return {Promise<void>}
457 */
458 WebGLRenderingContextBase.prototype.makeXRCompatible = function () {};
459
460 /**
461 * @constructor
462 */
463 function XRInputSourcesChangeEvent() {};
464
465 /**
466 * @type {Array<XRInputSource>}
467 */
468 XRInputSourcesChangeEvent.prototype.added;
469
470 /**
471 * @type {Array<XRInputSource>}
472 */
473 XRInputSourcesChangeEvent.prototype.removed;
474
475 /**
476 * @constructor
477 */
478 function XRInputSourceEvent() {};
479
480 /**
481 * @type {XRFrame}
482 */
483 XRInputSourceEvent.prototype.frame;
484
485 /**
486 * @type {XRInputSource}
487 */
488 XRInputSourceEvent.prototype.inputSource;
489
490 /**
491 * @constructor
492 */
493 function XRInputSource() {};
494
495 /**
496 * @type {Gamepad}
497 */
498 XRInputSource.prototype.gamepad;
499
500 /**
501 * @type {XRSpace}
502 */
503 XRInputSource.prototype.gripSpace;
504
505 /**
506 * @type {string}
507 */
508 XRInputSource.prototype.handedness;
509
510 /**
511 * @type {string}
512 */
513 XRInputSource.prototype.profiles;
514
515 /**
516 * @type {string}
517 */
518 XRInputSource.prototype.targetRayMode;
519
520 /**
521 * @type {XRSpace}
522 */
523 XRInputSource.prototype.targetRaySpace;
524
525 /**
526 * @type {?XRHand}
527 */
528 XRInputSource.prototype.hand;
529
530 /**
531 * @constructor
532 */
533 function XRHand() {};
534
535 /**
536 * Note: In fact, XRHand acts like a Map<string, XRJointSpace>, but I don't know
537 * how to represent that here. So, we're just giving the one method we call.
538 *
539 * @return {Array<XRJointSpace>}
540 */
541 XRHand.prototype.values = function () {};
542
543 /**
544 * @type {number}
545 */
546 XRHand.prototype.size;
547
548 /**
549 * @param {string} key
550 * @return {XRJointSpace}
551 */
552 XRHand.prototype.get = function (key) {};
553
554 /**
555 * @constructor
556 */
557 function XRSpace() {};
558
559 /**
560 * @constructor
561 * @extends {XRSpace}
562 */
563 function XRJointSpace() {};
564
565 /**
566 * @type {string}
567 */
568 XRJointSpace.prototype.jointName;
569
570 /**
571 * @constructor
572 */
573 function XRPose() {};
574
575 /**
576 * @type {XRRigidTransform}
577 */
578 XRPose.prototype.transform;
579
580 /**
581 * @type {boolean}
582 */
583 XRPose.prototype.emulatedPosition;
584
585 /*
586 * WebXR Layers API Level 1
587 */
588
589 /**
590 * @constructor XRLayer
591 */
592 function XRLayer() {}
593
594 /**
595 * @constructor XRLayerEventInit
596 */
597 function XRLayerEventInit() {}
598
599 /**
600 * @type {XRLayer}
601 */
602 XRLayerEventInit.prototype.layer;
603
604 /**
605 * @constructor XRLayerEvent
606 *
607 * @param {string} type
608 * @param {XRLayerEventInit} init
609 */
610 function XRLayerEvent(type, init) {};
611
612 /**
613 * @type {XRLayer}
614 */
615 XRLayerEvent.prototype.layer;
616
617 /**
618 * @constructor XRCompositionLayer
619 * @extends {XRLayer}
620 */
621 function XRCompositionLayer() {};
622
623 /**
624 * @type {string}
625 */
626 XRCompositionLayer.prototype.layout;
627
628 /**
629 * @type {boolean}
630 */
631 XRCompositionLayer.prototype.blendTextureAberrationCorrection;
632
633 /**
634 * @type {?boolean}
635 */
636 XRCompositionLayer.prototype.chromaticAberrationCorrection;
637
638 /**
639 * @type {boolean}
640 */
641 XRCompositionLayer.prototype.forceMonoPresentation;
642
643 /**
644 * @type {number}
645 */
646 XRCompositionLayer.prototype.opacity;
647
648 /**
649 * @type {number}
650 */
651 XRCompositionLayer.prototype.mipLevels;
652
653 /**
654 * @type {boolean}
655 */
656 XRCompositionLayer.prototype.needsRedraw;
657
658 /**
659 * @return {void}
660 */
661 XRCompositionLayer.prototype.destroy = function () {};
662
663 /**
664 * @constructor XRProjectionLayer
665 * @extends {XRCompositionLayer}
666 */
667 function XRProjectionLayer() {}
668
669 /**
670 * @type {number}
671 */
672 XRProjectionLayer.prototype.textureWidth;
673
674 /**
675 * @type {number}
676 */
677 XRProjectionLayer.prototype.textureHeight;
678
679 /**
680 * @type {number}
681 */
682 XRProjectionLayer.prototype.textureArrayLength;
683
684 /**
685 * @type {boolean}
686 */
687 XRProjectionLayer.prototype.ignoreDepthValues;
688
689 /**
690 * @type {?number}
691 */
692 XRProjectionLayer.prototype.fixedFoveation;
693
694 /**
695 * @type {XRRigidTransform}
696 */
697 XRProjectionLayer.prototype.deltaPose;
698
699 /**
700 * @constructor XRQuadLayer
701 * @extends {XRCompositionLayer}
702 */
703 function XRQuadLayer() {}
704
705 /**
706 * @type {XRSpace}
707 */
708 XRQuadLayer.prototype.space;
709
710 /**
711 * @type {XRRigidTransform}
712 */
713 XRQuadLayer.prototype.transform;
714
715 /**
716 * @type {number}
717 */
718 XRQuadLayer.prototype.width;
719
720 /**
721 * @type {number}
722 */
723 XRQuadLayer.prototype.height;
724
725 /**
726 * @type {?function (XRLayerEvent)}
727 */
728 XRQuadLayer.prototype.onredraw;
729
730 /**
731 * @constructor XRCylinderLayer
732 * @extends {XRCompositionLayer}
733 */
734 function XRCylinderLayer() {}
735
736 /**
737 * @type {XRSpace}
738 */
739 XRCylinderLayer.prototype.space;
740
741 /**
742 * @type {XRRigidTransform}
743 */
744 XRCylinderLayer.prototype.transform;
745
746 /**
747 * @type {number}
748 */
749 XRCylinderLayer.prototype.radius;
750
751 /**
752 * @type {number}
753 */
754 XRCylinderLayer.prototype.centralAngle;
755
756 /**
757 * @type {number}
758 */
759 XRCylinderLayer.prototype.aspectRatio;
760
761 /**
762 * @type {?function (XRLayerEvent)}
763 */
764 XRCylinderLayer.prototype.onredraw;
765
766 /**
767 * @constructor XREquirectLayer
768 * @extends {XRCompositionLayer}
769 */
770 function XREquirectLayer() {}
771
772 /**
773 * @type {XRSpace}
774 */
775 XREquirectLayer.prototype.space;
776
777 /**
778 * @type {XRRigidTransform}
779 */
780 XREquirectLayer.prototype.transform;
781
782 /**
783 * @type {number}
784 */
785 XREquirectLayer.prototype.radius;
786
787 /**
788 * @type {number}
789 */
790 XREquirectLayer.prototype.centralHorizontalAngle;
791
792 /**
793 * @type {number}
794 */
795 XREquirectLayer.prototype.upperVerticalAngle;
796
797 /**
798 * @type {number}
799 */
800 XREquirectLayer.prototype.lowerVerticalAngle;
801
802 /**
803 * @type {?function (XRLayerEvent)}
804 */
805 XREquirectLayer.prototype.onredraw;
806
807 /**
808 * @constructor XRCubeLayer
809 * @extends {XRCompositionLayer}
810 */
811 function XRCubeLayer() {}
812
813 /**
814 * @type {XRSpace}
815 */
816 XRCubeLayer.prototype.space;
817
818 /**
819 * @type {DOMPointReadOnly}
820 */
821 XRCubeLayer.prototype.orientation;
822
823 /**
824 * @type {?function (XRLayerEvent)}
825 */
826 XRCubeLayer.prototype.onredraw;
827
828 /**
829 * @constructor XRSubImage
830 */
831 function XRSubImage() {}
832
833 /**
834 * @type {XRViewport}
835 */
836 XRSubImage.prototype.viewport;
837
838 /**
839 * @constructor XRWebGLSubImage
840 * @extends {XRSubImage}
841 */
842 function XRWebGLSubImage () {}
843
844 /**
845 * @type {WebGLTexture}
846 */
847 XRWebGLSubImage.prototype.colorTexture;
848
849 /**
850 * @type {?WebGLTexture}
851 */
852 XRWebGLSubImage.prototype.depthStencilTexture;
853
854 /**
855 * @type {?WebGLTexture}
856 */
857 XRWebGLSubImage.prototype.motionVectorTexture;
858
859 /**
860 * @type {?number}
861 */
862 XRWebGLSubImage.prototype.imageIndex;
863
864 /**
865 * @type {number}
866 */
867 XRWebGLSubImage.prototype.colorTextureWidth;
868
869 /**
870 * @type {number}
871 */
872 XRWebGLSubImage.prototype.colorTextureHeight;
873
874 /**
875 * @type {?number}
876 */
877 XRWebGLSubImage.prototype.depthStencilTextureWidth;
878
879 /**
880 * @type {?number}
881 */
882 XRWebGLSubImage.prototype.depthStencilTextureHeight;
883
884 /**
885 * @type {?number}
886 */
887
888 XRWebGLSubImage.prototype.motionVectorTextureWidth;
889
890 /**
891 * @type {?number}
892 */
893 XRWebGLSubImage.prototype.motionVectorTextureHeight;
894
895 /**
896 * @constructor XRProjectionLayerInit
897 */
898 function XRProjectionLayerInit() {}
899
900 /**
901 * @type {string}
902 */
903 XRProjectionLayerInit.prototype.textureType;
904
905 /**
906 * @type {number}
907 */
908 XRProjectionLayerInit.prototype.colorFormat;
909
910 /**
911 * @type {number}
912 */
913 XRProjectionLayerInit.prototype.depthFormat;
914
915 /**
916 * @type {number}
917 */
918 XRProjectionLayerInit.prototype.scaleFactor;
919
920 /**
921 * @constructor XRLayerInit
922 */
923 function XRLayerInit() {}
924
925 /**
926 * @type {XRSpace}
927 */
928 XRLayerInit.prototype.space;
929
930 /**
931 * @type {number}
932 */
933 XRLayerInit.prototype.colorFormat;
934
935 /**
936 * @type {number}
937 */
938 XRLayerInit.prototype.depthFormat;
939
940 /**
941 * @type {number}
942 */
943 XRLayerInit.prototype.mipLevels;
944
945 /**
946 * @type {number}
947 */
948 XRLayerInit.prototype.viewPixelWidth;
949
950 /**
951 * @type {number}
952 */
953 XRLayerInit.prototype.viewPixelHeight;
954
955 /**
956 * @type {string}
957 */
958 XRLayerInit.prototype.layout;
959
960 /**
961 * @type {boolean}
962 */
963 XRLayerInit.prototype.isStatic;
964
965 /**
966 * @constructor XRQuadLayerInit
967 * @extends {XRLayerInit}
968 */
969 function XRQuadLayerInit() {}
970
971 /**
972 * @type {string}
973 */
974 XRQuadLayerInit.prototype.textureType;
975
976 /**
977 * @type {?XRRigidTransform}
978 */
979 XRQuadLayerInit.prototype.transform;
980
981 /**
982 * @type {number}
983 */
984 XRQuadLayerInit.prototype.width;
985
986 /**
987 * @type {number}
988 */
989 XRQuadLayerInit.prototype.height;
990
991 /**
992 * @constructor XRCylinderLayerInit
993 * @extends {XRLayerInit}
994 */
995 function XRCylinderLayerInit() {}
996
997 /**
998 * @type {string}
999 */
1000 XRCylinderLayerInit.prototype.textureType;
1001
1002 /**
1003 * @type {?XRRigidTransform}
1004 */
1005 XRCylinderLayerInit.prototype.transform;
1006
1007 /**
1008 * @type {number}
1009 */
1010 XRCylinderLayerInit.prototype.radius;
1011
1012 /**
1013 * @type {number}
1014 */
1015 XRCylinderLayerInit.prototype.centralAngle;
1016
1017 /**
1018 * @type {number}
1019 */
1020 XRCylinderLayerInit.prototype.aspectRatio;
1021
1022 /**
1023 * @constructor XREquirectLayerInit
1024 * @extends {XRLayerInit}
1025 */
1026 function XREquirectLayerInit() {}
1027
1028 /**
1029 * @type {string}
1030 */
1031 XREquirectLayerInit.prototype.textureType;
1032
1033 /**
1034 * @type {?XRRigidTransform}
1035 */
1036 XREquirectLayerInit.prototype.transform;
1037
1038 /**
1039 * @type {number}
1040 */
1041 XREquirectLayerInit.prototype.radius;
1042
1043 /**
1044 * @type {number}
1045 */
1046 XREquirectLayerInit.prototype.centralHorizontalAngle;
1047
1048 /**
1049 * @type {number}
1050 */
1051 XREquirectLayerInit.prototype.upperVerticalAngle;
1052
1053 /**
1054 * @type {number}
1055 */
1056 XREquirectLayerInit.prototype.lowerVerticalAngle;
1057
1058 /**
1059 * @constructor XRCubeLayerInit
1060 * @extends {XRLayerInit}
1061 */
1062 function XRCubeLayerInit() {}
1063
1064 /**
1065 * @type {DOMPointReadOnly}
1066 */
1067 XRCubeLayerInit.prototype.orientation;
1068
1069 /**
1070 * @constructor XRWebGLBinding
1071 *
1072 * @param {XRSession} session
1073 * @param {WebGLRenderContext|WebGL2RenderingContext} context
1074 */
1075 function XRWebGLBinding(session, context) {}
1076
1077 /**
1078 * @type {number}
1079 */
1080 XRWebGLBinding.prototype.nativeProjectionScaleFactor;
1081
1082 /**
1083 * @type {number}
1084 */
1085 XRWebGLBinding.prototype.usesDepthValues;
1086
1087 /**
1088 * @param {XRProjectionLayerInit} init
1089 * @return {XRProjectionLayer}
1090 */
1091 XRWebGLBinding.prototype.createProjectionLayer = function (init) {};
1092
1093 /**
1094 * @param {XRQuadLayerInit} init
1095 * @return {XRQuadLayer}
1096 */
1097 XRWebGLBinding.prototype.createQuadLayer = function (init) {};
1098
1099 /**
1100 * @param {XRCylinderLayerInit} init
1101 * @return {XRCylinderLayer}
1102 */
1103 XRWebGLBinding.prototype.createCylinderLayer = function (init) {};
1104
1105 /**
1106 * @param {XREquirectLayerInit} init
1107 * @return {XREquirectLayer}
1108 */
1109 XRWebGLBinding.prototype.createEquirectLayer = function (init) {};
1110
1111 /**
1112 * @param {XRCubeLayerInit} init
1113 * @return {XRCubeLayer}
1114 */
1115 XRWebGLBinding.prototype.createCubeLayer = function (init) {};
1116
1117 /**
1118 * @param {XRCompositionLayer} layer
1119 * @param {XRFrame} frame
1120 * @param {string} eye
1121 * @return {XRWebGLSubImage}
1122 */
1123 XRWebGLBinding.prototype.getSubImage = function (layer, frame, eye) {};
1124
1125 /**
1126 * @param {XRProjectionLayer} layer
1127 * @param {XRView} view
1128 * @return {XRWebGLSubImage}
1129 */
1130 XRWebGLBinding.prototype.getViewSubImage = function (layer, view) {};
1131
1132 /**
1133 * @constructor XRMediaLayerInit
1134 */
1135 function XRMediaLayerInit() {}
1136
1137 /**
1138 * @type {XRSpace}
1139 */
1140 XRMediaLayerInit.prototype.space;
1141
1142 /**
1143 * @type {string}
1144 */
1145 XRMediaLayerInit.prototype.layout;
1146
1147 /**
1148 * @type {boolean}
1149 */
1150 XRMediaLayerInit.prototype.invertStereo;
1151
1152 /**
1153 * @constructor XRMediaQuadLayerInit
1154 * @extends {XRMediaLayerInit}
1155 */
1156 function XRMediaQuadLayerInit() {}
1157
1158 /**
1159 * @type {XRRigidTransform}
1160 */
1161 XRMediaQuadLayerInit.prototype.transform;
1162
1163 /**
1164 * @type {number}
1165 */
1166 XRMediaQuadLayerInit.prototype.width;
1167
1168 /**
1169 * @type {number}
1170 */
1171 XRMediaQuadLayerInit.prototype.height;
1172
1173 /**
1174 * @constructor XRMediaCylinderLayerInit
1175 * @extends {XRMediaLayerInit}
1176 */
1177 function XRMediaCylinderLayerInit() {}
1178
1179 /**
1180 * @type {XRRigidTransform}
1181 */
1182 XRMediaCylinderLayerInit.prototype.transform;
1183
1184 /**
1185 * @type {number}
1186 */
1187 XRMediaCylinderLayerInit.prototype.radius;
1188
1189 /**
1190 * @type {number}
1191 */
1192 XRMediaCylinderLayerInit.prototype.centralAngle;
1193
1194 /**
1195 * @type {?number}
1196 */
1197 XRMediaCylinderLayerInit.prototype.aspectRatio;
1198
1199 /**
1200 * @constructor XRMediaEquirectLayerInit
1201 * @extends {XRMediaLayerInit}
1202 */
1203 function XRMediaEquirectLayerInit() {}
1204
1205 /**
1206 * @type {XRRigidTransform}
1207 */
1208 XRMediaEquirectLayerInit.prototype.transform;
1209
1210 /**
1211 * @type {number}
1212 */
1213 XRMediaEquirectLayerInit.prototype.radius;
1214
1215 /**
1216 * @type {number}
1217 */
1218 XRMediaEquirectLayerInit.prototype.centralHorizontalAngle;
1219
1220 /**
1221 * @type {number}
1222 */
1223 XRMediaEquirectLayerInit.prototype.upperVerticalAngle;
1224
1225 /**
1226 * @type {number}
1227 */
1228 XRMediaEquirectLayerInit.prototype.lowerVerticalAngle;
1229
1230 /**
1231 * @constructor XRMediaBinding
1232 *
1233 * @param {XRSession} session
1234 */
1235 function XRMediaBinding(session) {}
1236
1237 /**
1238 * @param {HTMLVideoElement} video
1239 * @param {XRMediaQuadLayerInit} init
1240 * @return {XRQuadLayer}
1241 */
1242 XRMediaBinding.prototype.createQuadLayer = function(video, init) {};
1243
1244 /**
1245 * @param {HTMLVideoElement} video
1246 * @param {XRMediaCylinderLayerInit} init
1247 * @return {XRCylinderLayer}
1248 */
1249 XRMediaBinding.prototype.createCylinderLayer = function(video, init) {};
1250
1251 /**
1252 * @param {HTMLVideoElement} video
1253 * @param {XRMediaEquirectLayerInit} init
1254 * @return {XREquirectLayer}
1255 */
1256 XRMediaBinding.prototype.createEquirectLayer = function(video, init) {};
1257
1258 /**
1259 * @type {Array<XRLayer>}
1260 */
1261 XRRenderState.prototype.layers;