Explorar el Código

updating XRWebGLLayer interface

Raanan Weber hace 5 años
padre
commit
ecc517c839
Se han modificado 1 ficheros con 10 adiciones y 1 borrados
  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;