glTFBinaryExtension.d.ts 895 B

12345678910111213141516
  1. import { GLTFLoaderExtension } from "./glTFLoader";
  2. import type { Scene } from "@babylonjs/core/scene.js";
  3. import type { IGLTFLoaderData } from "../glTFFileLoader";
  4. import type { IGLTFRuntime } from "./glTFLoaderInterfaces";
  5. /**
  6. * @internal
  7. * @deprecated
  8. */
  9. export declare class GLTFBinaryExtension extends GLTFLoaderExtension {
  10. private _bin;
  11. constructor();
  12. loadRuntimeAsync(scene: Scene, data: IGLTFLoaderData, rootUrl: string, onSuccess: (gltfRuntime: IGLTFRuntime) => void): boolean;
  13. loadBufferAsync(gltfRuntime: IGLTFRuntime, id: string, onSuccess: (buffer: ArrayBufferView) => void, onError: (message: string) => void): boolean;
  14. loadTextureBufferAsync(gltfRuntime: IGLTFRuntime, id: string, onSuccess: (buffer: ArrayBufferView) => void): boolean;
  15. loadShaderStringAsync(gltfRuntime: IGLTFRuntime, id: string, onSuccess: (shaderString: string) => void): boolean;
  16. }