|
@@ -1,7 +1,7 @@
|
|
|
import { LinearFilter, LinearMipmapLinearFilter, ClampToEdgeWrapping } from '../constants.js';
|
|
|
import { FileLoader } from './FileLoader.js';
|
|
|
import { DataTexture } from '../textures/DataTexture.js';
|
|
|
-import { DefaultLoadingManager } from './LoadingManager.js';
|
|
|
+import { Loader } from './Loader.js';
|
|
|
|
|
|
/**
|
|
|
* @author Nikos M. / https://github.com/foo123/
|
|
@@ -11,14 +11,16 @@ import { DefaultLoadingManager } from './LoadingManager.js';
|
|
|
|
|
|
function DataTextureLoader( manager ) {
|
|
|
|
|
|
- this.manager = ( manager !== undefined ) ? manager : DefaultLoadingManager;
|
|
|
+ Loader.call( this, manager );
|
|
|
|
|
|
// override in sub classes
|
|
|
this._parser = null;
|
|
|
|
|
|
}
|
|
|
|
|
|
-Object.assign( DataTextureLoader.prototype, {
|
|
|
+DataTextureLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
|
+
|
|
|
+ constructor: DataTextureLoader,
|
|
|
|
|
|
load: function ( url, onLoad, onProgress, onError ) {
|
|
|
|
|
@@ -87,13 +89,6 @@ Object.assign( DataTextureLoader.prototype, {
|
|
|
|
|
|
return texture;
|
|
|
|
|
|
- },
|
|
|
-
|
|
|
- setPath: function ( value ) {
|
|
|
-
|
|
|
- this.path = value;
|
|
|
- return this;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
} );
|