visualization-tools

Home > @visualization-tools/core > GlContextAdapter > (constructor)

GlContextAdapter.(constructor)

Constructs a new instance of the GlContextAdapter class

Signature:

protected constructor(canvasElement: HTMLCanvasElement, eventService: IEventService, ctxId: "webgl" | "webgl2", options: WebGLContextAttributes | undefined);

Parameters

Parameter Type Description
canvasElement HTMLCanvasElement  
eventService IEventService  
ctxId “webgl” | “webgl2”  
options WebGLContextAttributes | undefined