Skip to content

Interface: WebGLContextAttributes ​

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

The attributes the context really has (a plain object)

Properties ​

alpha ​

ts
readonly alpha: boolean;

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

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


antialias ​

ts
readonly antialias: boolean;

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

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:1261

Always true: the drawing buffer has a depth buffer


desynchronized ​

ts
readonly desynchronized: boolean;

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

Always false


failIfMajorPerformanceCaveat ​

ts
readonly failIfMajorPerformanceCaveat: boolean;

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

Always false


powerPreference ​

ts
readonly powerPreference: "default";

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

Always "default"


premultipliedAlpha ​

ts
readonly premultipliedAlpha: boolean;

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

Always true: the canvas is composited as premultiplied alpha


preserveDrawingBuffer ​

ts
readonly preserveDrawingBuffer: boolean;

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

Always false: the drawing buffer is cleared after being presented


stencil ​

ts
readonly stencil: boolean;

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

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

The SDK is released under the Apache License 2.0