UNPKG

nanogl-gltf

Version:
22 lines (21 loc) 911 B
import GltfTypes from "../types/GltfTypes"; import GltfLoader from "../io/GltfLoader"; import Gltf2 from "../types/Gltf2"; import { BaseAccessor } from "./Accessor"; import { IElement } from "../types/Elements"; /** * The AccessorSparseIndices element is an Accessor that contains the indices of the vertices that are sparse. */ export default class AccessorSparseIndices extends BaseAccessor implements IElement { readonly gltftype: GltfTypes.ACCESSOR_SPARSE_INDICES; name: undefined | string; extras: any; /** * Parse the AccessorSparseIndices data, load the BufferView element and store only the part that is needed in _array attribute. * * Is async as it needs to wait for the BufferView to be created. * @param gltfLoader GLTFLoader to use * @param data Data to parse */ parse(gltfLoader: GltfLoader, data: Gltf2.IAccessorSparseIndices): Promise<any>; }