Browse Source

updating XRWebGLLayer interface

Raanan Weber 5 năm trước cách đây
mục cha
commit
ecc517c839
1 tập tin đã thay đổi với 10 bổ sung1 xóa
  1. 10 1
      src/LibDeclarations/webxr.d.ts

+ 10 - 1
src/LibDeclarations/webxr.d.ts

@@ -86,9 +86,18 @@ interface XRPose {
     emulatedPosition: boolean;
 }
 
+interface XRWebGLLayerOptions {
+    antialias ?: boolean;
+    depth ?: boolean;
+    stencil ?: boolean;
+    alpha ?: boolean;
+    multiview ?: boolean;
+    framebufferScaleFactor ?: number;
+}
+
 declare var XRWebGLLayer: {
     prototype: XRWebGLLayer;
-    new(session: XRSession, context: WebGLRenderingContext | undefined): XRWebGLLayer;
+    new(session: XRSession, context: WebGLRenderingContext | undefined, options?: XRWebGLLayerOptions): XRWebGLLayer;
 };
 interface XRWebGLLayer {
     framebuffer: WebGLFramebuffer;