Explorar o código

updating XRWebGLLayer interface

Raanan Weber %!s(int64=5) %!d(string=hai) anos
pai
achega
ecc517c839
Modificáronse 1 ficheiros con 10 adicións e 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;