Skip to main content

Class: OffscreenCanvasGL

Rendering.WebGL.OffscreenCanvasGL(widthopt, heightopt)

This class is canvas polyfill for nodejs environment

Constructor

new OffscreenCanvasGL(widthopt, heightopt)

Parameters:
NameTypeAttributesDefaultDescription
widthint<optional>300Initial width
heightint<optional>150Initial height
Properties:
NameTypeDescription
contextWebGLRenderingContext

Extends

Methods

destroy()

Destroy underlying gl context if exists

Overrides:

getContext(typeopt, webGLContextAttributesopt)

Parameters:
NameTypeAttributesDefaultDescription
typestring<optional>webglContext type, the only possible value
webGLContextAttributesRendering.WebGL.WebGLContextAttributes<optional>WebGL context configuration

Overrides:

Home