@loaders.gl/obj
Version:
Framework-independent loader for the OBJ format
45 lines • 1.43 kB
TypeScript
import type { LoaderOptions } from '@loaders.gl/loader-utils';
import type { MTLMaterial, ParseMTLOptions } from "./lib/parse-mtl.js";
export type MTLLoaderOptions = LoaderOptions & {
mtl?: ParseMTLOptions;
};
/**
* Loader for the MTL material format
* Parses a Wavefront .mtl file specifying materials
*/
export declare const MTLWorkerLoader: {
readonly dataType: MTLMaterial[];
readonly batchType: never;
readonly version: any;
readonly worker: true;
readonly testText: (text: string) => boolean;
readonly options: {
readonly mtl: {};
};
readonly name: "MTL";
readonly id: "mtl";
readonly module: "mtl";
readonly extensions: ["mtl"];
readonly mimeTypes: ["text/plain"];
};
/**
* Loader for the MTL material format
*/
export declare const MTLLoader: {
readonly parse: (arrayBuffer: ArrayBuffer, options?: MTLLoaderOptions) => Promise<MTLMaterial[]>;
readonly parseTextSync: (text: string, options?: MTLLoaderOptions) => MTLMaterial[];
readonly dataType: MTLMaterial[];
readonly batchType: never;
readonly version: any;
readonly worker: true;
readonly testText: (text: string) => boolean;
readonly options: {
readonly mtl: {};
};
readonly name: "MTL";
readonly id: "mtl";
readonly module: "mtl";
readonly extensions: ["mtl"];
readonly mimeTypes: ["text/plain"];
};
//# sourceMappingURL=mtl-loader.d.ts.map