UNPKG

@openglobus/og

Version:

[openglobus](https://www.openglobus.org/) is a javascript/typescript library designed to display interactive 3d maps and planets with map tiles, imagery and vector data, markers, and 3D objects. It uses the WebGL technology, open source, and completely fr

26 lines (25 loc) 779 B
import { Entity } from "../../entity"; import { Object3d } from "../../Object3d"; import { GltfData, Mesh } from "./types"; export declare class Gltf { private gltf; private static _dracoDecoderModule; static connectDracoDecoderModule(decoder: any): void; static loadGlb(url: string): Promise<Gltf>; private _materials; private _images; meshes: Mesh[]; constructor(gltf: GltfData); getObjects3d(): Object3d[]; toEntities(): Entity[]; private _nodeToEntity; meshToEntity(mesh: Mesh, parent?: Entity): Entity; private _initImages; private _getImage; private _initMaterials; private _initMeshes; private _buildPrimitive; private static _toObject3d; private static _access; private static _getTensor; }