UNPKG

s2maps-gpu

Version:

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

21 lines (20 loc) 749 B
import Context from './context.js'; import type { MapOptions } from 'ui/s2mapUI.js'; import type { Painter } from '../painter.spec.js'; /** * # WebGL Context * Wrapper for WebGL context with plugins */ export default class WebGLContext extends Context { #private; elementIndexUint: OES_element_index_uint | null; angledInstancedArrays: ANGLE_instanced_arrays | null; vertexArrayObject: OES_vertex_array_object | null; textureFloat: OES_texture_float | null; /** * @param context - the WebGL rendering context * @param options - map options to pull out wegl specific options * @param painter - painter wrapper */ constructor(context: WebGLRenderingContext, options: MapOptions, painter: Painter); }