@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="WebGLContextAttributes")
public static interface WebGLContextAttributes.Builder
extends WebGLContextAttributes
WebGLRenderingContext or WebGL2RenderingContext created.WebGLContextAttributes.Builder| Modifier and Type | Method and Description |
|---|---|
default WebGLContextAttributes.Builder |
alpha(boolean alpha)
A flag that that hints that the user agent to reduce the latency by desynchronizing the canvas paint cycle from the event loop.
|
default WebGLContextAttributes.Builder |
antialias(boolean antialias)
A flag that indicates whether or not to perform anti-aliasing.
|
default WebGLContextAttributes.Builder |
depth(boolean depth)
A flag that indicates that the drawing buffer has a depth buffer of at least 16 bits.
|
default WebGLContextAttributes.Builder |
desynchronized(boolean desynchronized)
A flag that indicates if the canvas contains an alpha buffer.
|
default WebGLContextAttributes.Builder |
failIfMajorPerformanceCaveat(boolean failIfMajorPerformanceCaveat)
A flag that indicates if a context will be created if the system performance is low or if no hardware GPU is available.
|
default WebGLContextAttributes.Builder |
powerPreference(java.lang.String powerPreference)
A hint to the user agent indicating what configuration of GPU is suitable for the WebGL context.
|
default WebGLContextAttributes.Builder |
premultipliedAlpha(boolean premultipliedAlpha)
A flag that indicates that the page compositor will assume the drawing buffer contains colors with pre-multiplied alpha.
|
default WebGLContextAttributes.Builder |
preserveDrawingBuffer(boolean preserveDrawingBuffer)
A flag that controls whether the buffers will not be cleared and will preserve their values until cleared or overwritten by the author.
|
default WebGLContextAttributes.Builder |
stencil(boolean stencil)
A flag that indicates that the drawing buffer has a stencil buffer of at least 8 bits.
|
default WebGLContextAttributes.Builder |
xrCompatible(boolean xrCompatible) |
alpha, antialias, create, depth, desynchronized, failIfMajorPerformanceCaveat, powerPreference, premultipliedAlpha, preserveDrawingBuffer, setAlpha, setAntialias, setDepth, setDesynchronized, setFailIfMajorPerformanceCaveat, setPowerPreference, setPremultipliedAlpha, setPreserveDrawingBuffer, setStencil, setXrCompatible, stencil, xrCompatible@JsOverlay @Nonnull default WebGLContextAttributes.Builder alpha(boolean alpha)
@JsOverlay @Nonnull default WebGLContextAttributes.Builder antialias(boolean antialias)
@JsOverlay @Nonnull default WebGLContextAttributes.Builder depth(boolean depth)
@JsOverlay @Nonnull default WebGLContextAttributes.Builder desynchronized(boolean desynchronized)
@JsOverlay @Nonnull default WebGLContextAttributes.Builder failIfMajorPerformanceCaveat(boolean failIfMajorPerformanceCaveat)
@JsOverlay @Nonnull default WebGLContextAttributes.Builder powerPreference(@WebGLPowerPreference @Nonnull java.lang.String powerPreference)
@JsOverlay @Nonnull default WebGLContextAttributes.Builder premultipliedAlpha(boolean premultipliedAlpha)
@JsOverlay @Nonnull default WebGLContextAttributes.Builder preserveDrawingBuffer(boolean preserveDrawingBuffer)
@JsOverlay @Nonnull default WebGLContextAttributes.Builder stencil(boolean stencil)
@JsOverlay @Nonnull default WebGLContextAttributes.Builder xrCompatible(boolean xrCompatible)