@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="XRWebGLLayerInit")
public interface XRWebGLLayerInit
| Modifier and Type | Interface and Description |
|---|---|
static interface |
XRWebGLLayerInit.Builder
The WebXR Device API's XRWebGLLayerInit dictionary is used to provide configuration options when creating a new XRWebGLLayer object with the XRWebGLLayer() constructor.
|
| 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.
|
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.Builder |
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.
|
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.
|
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.
|
@JsOverlay @Nonnull static XRWebGLLayerInit.Builder create()
@JsProperty(name="alpha") boolean alpha()
@JsProperty void setAlpha(boolean alpha)
@JsProperty(name="antialias") boolean antialias()
@JsProperty void setAntialias(boolean antialias)
@JsProperty(name="depth") boolean depth()
@JsProperty void setDepth(boolean depth)
@JsProperty(name="framebufferScaleFactor") double framebufferScaleFactor()
@JsProperty void setFramebufferScaleFactor(double framebufferScaleFactor)
@JsProperty(name="ignoreDepthValues") boolean ignoreDepthValues()
@JsProperty void setIgnoreDepthValues(boolean ignoreDepthValues)
@JsProperty(name="stencil") boolean stencil()
@JsProperty void setStencil(boolean stencil)