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]; }

**Returns:**

WebGLRenderingContext | WebGL2RenderingContext

Get in touch

We'd love to learn more about your vision and how we can help.

PressPrivacyTermsSupportCopyright © 2024 Core3D, Inc. All Rights Reserved.