mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
30 lines
946 B
TypeScript
30 lines
946 B
TypeScript
// https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/GLTFLoader.js
|
|
|
|
import {AnimationClip} from "./three-core";
|
|
import {Camera} from "./three-core";
|
|
import {LoadingManager} from "./three-core";
|
|
import {Scene} from "./three-core";
|
|
|
|
export class GLTF {
|
|
animations: AnimationClip[];
|
|
scene: Scene;
|
|
scenes: Scene[];
|
|
cameras: Camera[];
|
|
asset: object;
|
|
}
|
|
|
|
export class GLTFLoader {
|
|
|
|
constructor(manager?: LoadingManager);
|
|
manager: LoadingManager;
|
|
path: string;
|
|
|
|
load(url: string, onLoad: (gltf: GLTF) => void, onProgress?: (event: ProgressEvent) => void, onError?: (event: ErrorEvent) => void) : void;
|
|
setPath(path: string) : GLTFLoader;
|
|
setResourcePath(path: string) : GLTFLoader;
|
|
setCrossOrigin(value: string): void;
|
|
setDRACOLoader(dracoLoader: object): void;
|
|
parse(data: ArrayBuffer, path: string, onLoad: (gltf: GLTF) => void, onError?: (event: ErrorEvent) => void) : void;
|
|
|
|
}
|