Class: OffscreenCanvasGL
Rendering.WebGL.OffscreenCanvasGL(widthopt, heightopt)
This class is canvas polyfill for nodejs environment
Constructor
new OffscreenCanvasGL(widthopt, heightopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
width | int | <optional> | 300 | Initial width |
height | int | <optional> | 150 | Initial height |
Properties:
Name | Type | Description |
---|---|---|
context | WebGLRenderingContext |
Extends
Methods
destroy()
Destroy underlying gl context if exists
Overrides:
getContext(typeopt, webGLContextAttributesopt)
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
type | string | <optional> | webgl | Context type, the only possible value |
webGLContextAttributes | Rendering.WebGL.WebGLContextAttributes | <optional> | WebGL context configuration |
Overrides: