Skip to content

glContextAttributes

glContextAttributes(preserveDrawingBuffer?): WebGLContextAttributes

Defined in: runtime/packagedRuntime.ts:185

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