Fill in some of XRWebGLLayer

This commit is contained in:
Manish Goregaokar 2018-12-20 16:49:14 -08:00
parent 682c89a18c
commit 70e8a19200
2 changed files with 69 additions and 17 deletions

View file

@ -4,29 +4,30 @@
// https://immersive-web.github.io/webxr/#xrwebgllayer-interface
typedef (WebGLRenderingContext or
WebGL2RenderingContext) XRWebGLRenderingContext;
// typedef (WebGLRenderingContext or
// WebGL2RenderingContext) XRWebGLRenderingContext;
typedef WebGLRenderingContext XRWebGLRenderingContext;
dictionary XRWebGLLayerInit {
boolean antialias = true;
boolean depth = true;
boolean stencil = false;
boolean alpha = true;
double framebufferScaleFactor = 1.0;
// double framebufferScaleFactor = 1.0;
};
[SecureContext, Exposed=Window]
// [Constructor(XRSession session,
// XRWebGLRenderingContext context,
// optional XRWebGLLayerInit layerInit)]
[SecureContext, Exposed=Window, Constructor(XRSession session,
XRWebGLRenderingContext context,
optional XRWebGLLayerInit layerInit)]
interface XRWebGLLayer : XRLayer {
// // Attributes
// readonly attribute XRWebGLRenderingContext context;
readonly attribute XRWebGLRenderingContext context;
// readonly attribute boolean antialias;
// readonly attribute boolean depth;
// readonly attribute boolean stencil;
// readonly attribute boolean alpha;
readonly attribute boolean antialias;
readonly attribute boolean depth;
readonly attribute boolean stencil;
readonly attribute boolean alpha;
// readonly attribute WebGLFramebuffer framebuffer;
// readonly attribute unsigned long framebufferWidth;