UNPKG

three

Version:

JavaScript 3D library

47 lines (27 loc) 743 B
import { DefaultLoadingManager } from './LoadingManager.js'; /** * @author alteredq / http://alteredqualia.com/ */ function Loader( manager ) { this.manager = ( manager !== undefined ) ? manager : DefaultLoadingManager; this.crossOrigin = 'anonymous'; this.path = ''; this.resourcePath = ''; } Object.assign( Loader.prototype, { load: function ( /* url, onLoad, onProgress, onError */ ) {}, parse: function ( /* data */ ) {}, setCrossOrigin: function ( crossOrigin ) { this.crossOrigin = crossOrigin; return this; }, setPath: function ( path ) { this.path = path; return this; }, setResourcePath: function ( resourcePath ) { this.resourcePath = resourcePath; return this; } } ); export { Loader };