@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="XRWebGLLayer")
public class XRWebGLLayer
extends XRLayer
| Modifier and Type | Field and Description |
|---|---|
@JsNullable java.lang.Double |
fixedFoveation |
| Constructor and Description |
|---|
XRWebGLLayer(XRSession session,
XRWebGLRenderingContext context)
The WebXR Device API XRWebGLLayer() constructor creates and returns a new XRWebGLLayer object, providing the linkage between the WebXR device and the WebGL graphics layer used to render the 3D scene.
|
XRWebGLLayer(XRSession session,
XRWebGLRenderingContext context,
XRWebGLLayerInit layerInit)
The WebXR Device API XRWebGLLayer() constructor creates and returns a new XRWebGLLayer object, providing the linkage between the WebXR device and the WebGL graphics layer used to render the 3D scene.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
antialias()
The read-only XRWebGLLayer property antialias is a Boolean value which is true if the rendering layer's frame buffer supports antialiasing.
|
WebGLFramebuffer |
framebuffer()
The read-only XRWebGLLayer property framebuffer is an opaque WebGLFramebuffer which is used to buffer the rendered image if the XR compositor is being used.
|
int |
framebufferHeight()
The read-only XRWebGLLayer property framebufferHeight indicates the height of the framebuffer, in pixels.
|
int |
framebufferWidth()
The read-only XRWebGLLayer property framebufferWidth specifies the width of the framebuffer, in pixels.
|
static double |
getNativeFramebufferScaleFactor(XRSession session)
The static method XRWebGLLayer.getNativeFramebufferScaleFactor() returns a floating-point scaling factor by which one can multiply the specified XRSession's resolution to get the native resolution of the WebXR device's frame buffer.
|
@JsNullable XRViewport |
getViewport(XRView view)
The XRWebGLLayer interface's getViewport() method returns the XRViewport that should be used to render the specified XRView into the WebGL layer.
|
boolean |
ignoreDepthValues()
The read-only XRWebGLLayer property ignoreDepthValues is a Boolean value which is true if the session has been configured to ignore the values in the depth buffer while rendering the scene.
|
addEventListener, addEventListener, addEventListener, dispatchEvent, removeEventListener, removeEventListener, removeEventListenerassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic XRWebGLLayer(@Nonnull
XRSession session,
@Nonnull
XRWebGLRenderingContext context,
@Nonnull
XRWebGLLayerInit layerInit)
public XRWebGLLayer(@Nonnull
XRSession session,
@Nonnull
XRWebGLRenderingContext context)
@JsProperty(name="antialias") public boolean antialias()
@JsProperty(name="framebuffer") @Nullable public WebGLFramebuffer framebuffer()
@JsProperty(name="framebufferHeight") public int framebufferHeight()
@JsProperty(name="framebufferWidth") public int framebufferWidth()
@JsProperty(name="ignoreDepthValues") public boolean ignoreDepthValues()
public static double getNativeFramebufferScaleFactor(@Nonnull
XRSession session)
public @JsNullable XRViewport getViewport(@Nonnull XRView view)