Skip to main content

Class: WebGlInfo

Constructors​

new WebGlInfo()​

new WebGlInfo(): WebGlInfo

Returns​

WebGlInfo

Methods​

dispose()​

static dispose(): void

Removes the temporary canvas that was created to get WebGL information.

Returns​

void

Defined in​

m2c2kit/packages/core/src/WebGlInfo.ts:40


getRendererString()​

static getRendererString(): string

Returns graphics driver vendor and renderer information.

Returns​

string

string

Remarks​

Information is from parameters UNMASKED_VENDOR_WEBGL and UNMASKED_RENDERER_WEBGL when asking for WEBGL_debug_renderer_info from the WebGLRenderingContext.

Defined in​

m2c2kit/packages/core/src/WebGlInfo.ts:12


interceptWebGlCalls()​

static interceptWebGlCalls(htmlCanvas): void

Parameters​

• htmlCanvas: HTMLCanvasElement

Returns​

void

Defined in​

m2c2kit/packages/core/src/WebGlInfo.ts:49