AdapterInterface.createGl() method
Create a WebGL rendering context.
Signature:
createGl(props: {
attributes?: WebGLContextAttributes;
canvas: HTMLCanvasElement;
size?: [number, number];
}): WebGLRenderingContext | WebGL2RenderingContext;
Parameters
Parameter |
Type |
Description |
---|---|---|
props |
{ attributes?: WebGLContextAttributes; canvas: HTMLCanvasElement; size?: [number, number]; } |
WebGLRenderingContext | WebGL2RenderingContext