@itwin/core-common
Version:
iTwin.js components common to frontend and backend
55 lines • 1.55 kB
TypeScript
/** @packageDocumentation
* @module Tile
*/
import { ByteStream } from "@itwin/core-bentley";
import { TileHeader } from "./TileIO";
/** Known version of the [glTF format](https://www.khronos.org/gltf/).
* @internal
*/
export declare enum GltfVersions {
Version1 = 1,
Version2 = 2,
CurrentVersion = 1,
Gltf1SceneFormat = 0
}
/** @internal */
export declare enum GltfV2ChunkTypes {
JSON = 1313821514,
Binary = 5130562
}
/** A chunk of a glb file.
* @internal
*/
export interface GltfChunk {
/** Offset of the first byte of the chunk's data relative to the beginning of the glb data.
* This excludes the 8-byte chunk header containing the length and type fields.
*/
offset: number;
/** The number of bytes in the chunk's data. */
length: number;
}
/** Describes a glTF chunk's data along with its type.
* @internal
*/
export type TypedGltfChunk = GltfChunk & {
type: number;
};
/** @internal */
export declare class GlbHeader extends TileHeader {
readonly gltfLength: number;
readonly jsonChunk: GltfChunk;
readonly binaryChunk?: GltfChunk;
readonly additionalChunks: TypedGltfChunk[];
get isValid(): boolean;
constructor(stream: ByteStream);
}
/** @internal */
export declare class GltfHeader extends TileHeader {
readonly gltfLength: number;
readonly scenePosition: number;
readonly sceneStrLength: number;
readonly binaryPosition: number;
get isValid(): boolean;
constructor(stream: ByteStream);
}
//# sourceMappingURL=GltfTileIO.d.ts.map