Methods
Static getContext
- getContext(canvas: HTMLCanvasElement, options?: WebGLContextAttributes): WebGLRenderingContext | null
-
Parameters
-
canvas: HTMLCanvasElement
-
Optional options: WebGLContextAttributes
Returns WebGLRenderingContext | null
Static getWebGlSupport
-
Static initialize
-
Returns void
Helper class to extract WebGL1/2 detection and context creation