Newer
Older
HuangJiPC / public / static / three / examples / jsm / loaders / LDrawLoader.d.ts
@zhangdeliang zhangdeliang on 21 Jun 596 bytes update
import {
	Loader,
	LoadingManager,
	Group,
	Material
} from '../../../src/Three';

export class LDrawLoader extends Loader {

	constructor( manager?: LoadingManager );

	load( url: string, onLoad: ( data: Group ) => void, onProgress?: ( event: ProgressEvent ) => void, onError?: ( event: ErrorEvent ) => void ) : void;
	setFileMap( fileMap: Record<string, string> ): void;
	setMaterials( materials: Material[] ): void;

	parse( text: string, path: string, onLoad: ( data: Group ) => void ): void;

	addMaterial( material: Material ): void;
	getMaterial( colourCode: string ): Material | null;

}