visualization-tools

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

Gl2ContextAdapter.(constructor)

Constructs a new instance of the Gl2ContextAdapter class

Signature:

constructor(canvasElement: HTMLCanvasElement, eventService: IEventService, options?: WebGLContextAttributes);

Parameters

Parameter Type Description
canvasElement HTMLCanvasElement  
eventService IEventService  
options WebGLContextAttributes