Home > @visualization-tools/core > GlContextAdapter
Base webgl context adapter. Handles viewport and context loss.
Signature:
export declare abstract class GlContextAdapter<TCtx extends TGlContext> implements IContextAdapter<TCtx>
Implements: IContextAdapter<TCtx>
| Constructor | Modifiers | Description |
|---|---|---|
| (constructor)(canvasElement, eventService, ctxId, options) | Constructs a new instance of the GlContextAdapter class |
| Property | Modifiers | Type | Description |
|---|---|---|---|
| context | TCtx | null |
| Method | Modifiers | Description |
|---|---|---|
| getContext() | ||
| onResize(canvasDims) |