UNPKG

s2maps-gpu

Version:

S2 Maps GPU - An open source, high-performance, and GPU-accelerated map engine for rendering large-scale, interactive maps.

18 lines (17 loc) 533 B
import Context from './context.js'; /** WEBGL2 context class */ export default class WebGL2Context extends Context { /** * Ensure the context is a WebGL2 context * @param context - WebGL2RenderingContext * @param options - map options * @param painter - painter */ constructor(context, options, painter) { super(context, options, painter); // let the painter know it's a WebGL2Context this.type = 2; // create a default quad this._createDefaultQuad(); } }