@loaders.gl/gltf
Version:
Framework-independent loader for the glTF format
13 lines • 869 B
TypeScript
import type { TypedArray } from '@loaders.gl/schema';
import type { GLTF, GLTFExternalBuffer, GLTFAccessor } from "../types/gltf-types.js";
export declare function getTypedArrayForBufferView(json: any, buffers: any, bufferViewIndex: any): Uint8Array<any>;
export declare function getTypedArrayForImageData(json: any, buffers: any, imageIndex: any): Uint8Array<any>;
/**
* Gets data pointed by the accessor.
* @param json - json part of gltf content of a GLTF tile.
* @param buffers - Array containing buffers of data.
* @param accessor - accepts accessor index or accessor object.
* @returns {TypedArray} Typed array with type matching the type of data poited by the accessor.
*/
export declare function getTypedArrayForAccessor(json: GLTF, buffers: GLTFExternalBuffer[], accessor: GLTFAccessor | number): TypedArray;
//# sourceMappingURL=get-typed-array.d.ts.map