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.
Parameters
Section titled “Parameters”preserveDrawingBuffer?
Section titled “preserveDrawingBuffer?”boolean = false
Returns
Section titled “Returns”WebGLContextAttributes