Skip to content

Interface: WebGLContextAttributes ​

Defined in: types/desktop-engine.d.ts:1836

The attributes the context really has (a plain object)

Properties ​

alpha ​

ts
readonly alpha: boolean;

Defined in: types/desktop-engine.d.ts:1838

The alpha option of getContext (true unless alpha: false)


antialias ​

ts
readonly antialias: boolean;

Defined in: types/desktop-engine.d.ts:1844

Whether the drawing buffer is multisampled (the antialias option of getContext, when supported)


depth ​

ts
readonly depth: boolean;

Defined in: types/desktop-engine.d.ts:1840

Always true: the drawing buffer has a depth buffer


desynchronized ​

ts
readonly desynchronized: boolean;

Defined in: types/desktop-engine.d.ts:1852

Always false


failIfMajorPerformanceCaveat ​

ts
readonly failIfMajorPerformanceCaveat: boolean;

Defined in: types/desktop-engine.d.ts:1850

Always false


powerPreference ​

ts
readonly powerPreference: "default";

Defined in: types/desktop-engine.d.ts:1854

Always "default"


premultipliedAlpha ​

ts
readonly premultipliedAlpha: boolean;

Defined in: types/desktop-engine.d.ts:1846

Always true: the canvas is composited as premultiplied alpha


preserveDrawingBuffer ​

ts
readonly preserveDrawingBuffer: boolean;

Defined in: types/desktop-engine.d.ts:1848

Always false: the drawing buffer is cleared after being presented


stencil ​

ts
readonly stencil: boolean;

Defined in: types/desktop-engine.d.ts:1842

Always true: the drawing buffer has an 8 bit stencil buffer

The SDK is released under the Apache License 2.0