UNPKG

itowns

Version:

A JS/WebGL framework for 3D geospatial data visualization

18 lines (17 loc) 748 B
import type { TileBuilder, TileBuilderParams } from '../../Core/Prefab/TileBuilder'; export declare function getBufferIndexSize(segments: number, noSkirt: boolean): number; type Option<T> = T | undefined; type IndexArray = Option<Uint8Array | Uint16Array | Uint32Array>; export type Buffers = { index: IndexArray; position: Float32Array; normal: Float32Array; uvs: [Option<Float32Array>, Option<Float32Array>]; }; type BufferCache = { index: Exclude<IndexArray, undefined>; uv: Float32Array; }; /** Compute buffers describing a tile according to a builder and its params. */ export declare function computeBuffers(builder: TileBuilder<TileBuilderParams>, params: TileBuilderParams, cache?: BufferCache): Buffers; export {};