@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="Object")
public interface XRWebGLLayerInit
| Modifier and Type | Method and Description |
|---|---|
boolean |
alpha()
The alpha property is a Boolean value which, if present and set to true in the XRWebGLLayerInit dictionary passed into the XRWebGLLayer() constructor, specifies that the new layer's color buffer is to include an alpha channel.
|
default XRWebGLLayerInit |
alpha(boolean alpha)
The alpha property is a Boolean value which, if present and set to true in the XRWebGLLayerInit dictionary passed into the XRWebGLLayer() constructor, specifies that the new layer's color buffer is to include an alpha channel.
|
boolean |
antialias()
The Boolean antialias property, if present and set to true in the XRWebGLLayerInit object provided as the XRWebGLLayer() constructor's layerInit parameter, requests that the new WebGL rendering layer support anti-aliasing.
|
default XRWebGLLayerInit |
antialias(boolean antialias)
The Boolean antialias property, if present and set to true in the XRWebGLLayerInit object provided as the XRWebGLLayer() constructor's layerInit parameter, requests that the new WebGL rendering layer support anti-aliasing.
|
static XRWebGLLayerInit |
create() |
boolean |
depth()
When using the XRWebGLLayer() constructor to create a new WebGL rendering layer for WebXR, providing as the layerInit parameter an object whose depth property is false will request that the new layer be created without a depth buffer.
|
default XRWebGLLayerInit |
depth(boolean depth)
When using the XRWebGLLayer() constructor to create a new WebGL rendering layer for WebXR, providing as the layerInit parameter an object whose depth property is false will request that the new layer be created without a depth buffer.
|
double |
framebufferScaleFactor()
The XRWebGLLayerInit dictionary's framebufferScaleFactor property, when specified upon instantiating a new XRWebGLLayer using its constructor, XRWebGLLayer(), specifies the scaling factor to use when determining the size of the frame buffer to use when rendering the scene, relative to the default XR device display resolution.
|
default XRWebGLLayerInit |
framebufferScaleFactor(double framebufferScaleFactor)
The XRWebGLLayerInit dictionary's framebufferScaleFactor property, when specified upon instantiating a new XRWebGLLayer using its constructor, XRWebGLLayer(), specifies the scaling factor to use when determining the size of the frame buffer to use when rendering the scene, relative to the default XR device display resolution.
|
boolean |
ignoreDepthValues()
The XRWebGLLayerInit dictionary's Boolean ignoreDepthValues property can be provided in the options passed into the XRWebGLLayer() constructor to indicate that the depth buffer, if it exists, should be ignored while composing the scene.
|
default XRWebGLLayerInit |
ignoreDepthValues(boolean ignoreDepthValues)
The XRWebGLLayerInit dictionary's Boolean ignoreDepthValues property can be provided in the options passed into the XRWebGLLayer() constructor to indicate that the depth buffer, if it exists, should be ignored while composing the scene.
|
void |
setAlpha(boolean alpha)
The alpha property is a Boolean value which, if present and set to true in the XRWebGLLayerInit dictionary passed into the XRWebGLLayer() constructor, specifies that the new layer's color buffer is to include an alpha channel.
|
void |
setAntialias(boolean antialias)
The Boolean antialias property, if present and set to true in the XRWebGLLayerInit object provided as the XRWebGLLayer() constructor's layerInit parameter, requests that the new WebGL rendering layer support anti-aliasing.
|
void |
setDepth(boolean depth)
When using the XRWebGLLayer() constructor to create a new WebGL rendering layer for WebXR, providing as the layerInit parameter an object whose depth property is false will request that the new layer be created without a depth buffer.
|
void |
setFramebufferScaleFactor(double framebufferScaleFactor)
The XRWebGLLayerInit dictionary's framebufferScaleFactor property, when specified upon instantiating a new XRWebGLLayer using its constructor, XRWebGLLayer(), specifies the scaling factor to use when determining the size of the frame buffer to use when rendering the scene, relative to the default XR device display resolution.
|
void |
setIgnoreDepthValues(boolean ignoreDepthValues)
The XRWebGLLayerInit dictionary's Boolean ignoreDepthValues property can be provided in the options passed into the XRWebGLLayer() constructor to indicate that the depth buffer, if it exists, should be ignored while composing the scene.
|
void |
setStencil(boolean stencil)
When using the XRWebGLLayer() constructor to create a new WebGL rendering layer for WebXR, providing as the layerInit parameter an object whose stencil property is false requests that the new layer be created without a stencil buffer.
|
boolean |
stencil()
When using the XRWebGLLayer() constructor to create a new WebGL rendering layer for WebXR, providing as the layerInit parameter an object whose stencil property is false requests that the new layer be created without a stencil buffer.
|
default XRWebGLLayerInit |
stencil(boolean stencil)
When using the XRWebGLLayer() constructor to create a new WebGL rendering layer for WebXR, providing as the layerInit parameter an object whose stencil property is false requests that the new layer be created without a stencil buffer.
|
@JsOverlay @Nonnull static XRWebGLLayerInit create()
@JsProperty(name="alpha") boolean alpha()
@JsProperty void setAlpha(boolean alpha)
@JsOverlay @Nonnull default XRWebGLLayerInit alpha(boolean alpha)
@JsProperty(name="antialias") boolean antialias()
@JsProperty void setAntialias(boolean antialias)
@JsOverlay @Nonnull default XRWebGLLayerInit antialias(boolean antialias)
@JsProperty(name="depth") boolean depth()
@JsProperty void setDepth(boolean depth)
@JsOverlay @Nonnull default XRWebGLLayerInit depth(boolean depth)
@JsProperty(name="framebufferScaleFactor") double framebufferScaleFactor()
@JsProperty void setFramebufferScaleFactor(double framebufferScaleFactor)
@JsOverlay @Nonnull default XRWebGLLayerInit framebufferScaleFactor(double framebufferScaleFactor)
@JsProperty(name="ignoreDepthValues") boolean ignoreDepthValues()
@JsProperty void setIgnoreDepthValues(boolean ignoreDepthValues)
@JsOverlay @Nonnull default XRWebGLLayerInit ignoreDepthValues(boolean ignoreDepthValues)
@JsProperty(name="stencil") boolean stencil()
@JsProperty void setStencil(boolean stencil)
@JsOverlay @Nonnull default XRWebGLLayerInit stencil(boolean stencil)