Home > @visualization-tools/core > GlContextAdapter > (constructor)
Constructs a new instance of the GlContextAdapter class
Signature:
protected constructor(canvasElement: HTMLCanvasElement, eventService: IEventService, ctxId: "webgl" | "webgl2", options: WebGLContextAttributes | undefined);
| Parameter | Type | Description |
|---|---|---|
| canvasElement | HTMLCanvasElement | |
| eventService | IEventService | |
| ctxId | “webgl” | “webgl2” | |
| options | WebGLContextAttributes | undefined |