|
@@ -34978,15 +34978,14 @@ AnimationLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
|
* @author mrdoob / http://mrdoob.com/
|
|
|
*
|
|
|
* Abstract Base class to block based textures loader (dds, pvr, ...)
|
|
|
+ *
|
|
|
+ * Sub classes have to implement the parse() method which will be used in load().
|
|
|
*/
|
|
|
|
|
|
function CompressedTextureLoader( manager ) {
|
|
|
|
|
|
Loader.call( this, manager );
|
|
|
|
|
|
- // override in sub classes
|
|
|
- this._parser = null;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
CompressedTextureLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
@@ -35010,7 +35009,7 @@ CompressedTextureLoader.prototype = Object.assign( Object.create( Loader.prototy
|
|
|
|
|
|
loader.load( url[ i ], function ( buffer ) {
|
|
|
|
|
|
- var texDatas = scope._parser( buffer, true );
|
|
|
+ var texDatas = scope.parse( buffer, true );
|
|
|
|
|
|
images[ i ] = {
|
|
|
width: texDatas.width,
|
|
@@ -35053,7 +35052,7 @@ CompressedTextureLoader.prototype = Object.assign( Object.create( Loader.prototy
|
|
|
|
|
|
loader.load( url, function ( buffer ) {
|
|
|
|
|
|
- var texDatas = scope._parser( buffer, true );
|
|
|
+ var texDatas = scope.parse( buffer, true );
|
|
|
|
|
|
if ( texDatas.isCubemap ) {
|
|
|
|
|
@@ -35107,15 +35106,14 @@ CompressedTextureLoader.prototype = Object.assign( Object.create( Loader.prototy
|
|
|
* @author Nikos M. / https://github.com/foo123/
|
|
|
*
|
|
|
* Abstract Base class to load generic binary textures formats (rgbe, hdr, ...)
|
|
|
+ *
|
|
|
+ * Sub classes have to implement the parse() method which will be used in load().
|
|
|
*/
|
|
|
|
|
|
function DataTextureLoader( manager ) {
|
|
|
|
|
|
Loader.call( this, manager );
|
|
|
|
|
|
- // override in sub classes
|
|
|
- this._parser = null;
|
|
|
-
|
|
|
}
|
|
|
|
|
|
DataTextureLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
|
|
@@ -35133,7 +35131,7 @@ DataTextureLoader.prototype = Object.assign( Object.create( Loader.prototype ),
|
|
|
loader.setPath( this.path );
|
|
|
loader.load( url, function ( buffer ) {
|
|
|
|
|
|
- var texData = scope._parser( buffer );
|
|
|
+ var texData = scope.parse( buffer );
|
|
|
|
|
|
if ( ! texData ) return;
|
|
|
|