mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
Fill in some of XRWebGLLayer
This commit is contained in:
parent
682c89a18c
commit
70e8a19200
2 changed files with 69 additions and 17 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue