Skip to content

glContextAttributes

glContextAttributes(preserveDrawingBuffer?): WebGLContextAttributes

Defined in: sdk/src/runtime/packagedRuntime.ts:210

The attributes every host creates the engine’s WebGL2 context with. WebGL gives no stencil buffer unless asked, and sprite masks draw through one. preserveDrawingBuffer is for a harness that reads a composited frame back.

boolean = false

WebGLContextAttributes