|
@@ -1,7 +1,22 @@
|
|
|
-import { Object3D } from '../../../src/Three';
|
|
|
+import {
|
|
|
+ Object3D,
|
|
|
+ AnimationClip
|
|
|
+} from '../../../src/Three';
|
|
|
+
|
|
|
+export interface GLTFExporterOptions {
|
|
|
+ binary?: boolean;
|
|
|
+ trs?: boolean;
|
|
|
+ onlyVisible?: boolean;
|
|
|
+ truncateDrawRange?: boolean;
|
|
|
+ embedImages?: boolean;
|
|
|
+ animations?: AnimationClip[];
|
|
|
+ forceIndices?: boolean;
|
|
|
+ forcePowerOfTwoTextures?: boolean;
|
|
|
+ includeCustomExtensions?: boolean;
|
|
|
+}
|
|
|
|
|
|
export class GLTFExporter {
|
|
|
- constructor();
|
|
|
+ constructor();
|
|
|
|
|
|
- parse(input: Object3D, onCompleted: (gltf: object) => void, options: object): null;
|
|
|
+ parse(input: Object3D, onCompleted: (gltf: object) => void, options: GLTFExporterOptions): void;
|
|
|
}
|