UNPKG

maplibre-gl

Version:

BSD licensed community fork of mapbox-gl, a WebGL interactive maps library

15 lines (13 loc) 565 B
import type {Style} from '../style/style.ts'; import type {StyleLayer} from '../style/style_layer.ts'; import type {Tile} from '../tile/tile.ts'; import type {RenderOptions} from './painter.ts'; /** * Interface for render-to-texture implementations. * The painter uses this interface — concrete implementations live in backend folders (webgl/, webgpu/). */ export interface IRenderToTexture { prepareForRender(style: Style, zoom: number): void; renderLayer(layer: StyleLayer, renderOptions: RenderOptions): boolean; getTexture(tile: Tile): any; }