@@ -34984,15 +34984,14 @@
3498434984 * @author mrdoob / http://mrdoob.com/
3498534985 *
3498634986 * Abstract Base class to block based textures loader (dds, pvr, ...)
34987+ *
34988+ * Sub classes have to implement the parse() method which will be used in load().
3498734989 */
3498834990
3498934991 function CompressedTextureLoader( manager ) {
3499034992
3499134993 Loader.call( this, manager );
3499234994
34993- // override in sub classes
34994- this._parser = null;
34995-
3499634995 }
3499734996
3499834997 CompressedTextureLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
3501635015
3501735016 loader.load( url[ i ], function ( buffer ) {
3501835017
35019- var texDatas = scope._parser ( buffer, true );
35018+ var texDatas = scope.parse ( buffer, true );
3502035019
3502135020 images[ i ] = {
3502235021 width: texDatas.width,
3505935058
3506035059 loader.load( url, function ( buffer ) {
3506135060
35062- var texDatas = scope._parser ( buffer, true );
35061+ var texDatas = scope.parse ( buffer, true );
3506335062
3506435063 if ( texDatas.isCubemap ) {
3506535064
@@ -35113,15 +35112,14 @@
3511335112 * @author Nikos M. / https://github.com/foo123/
3511435113 *
3511535114 * Abstract Base class to load generic binary textures formats (rgbe, hdr, ...)
35115+ *
35116+ * Sub classes have to implement the parse() method which will be used in load().
3511635117 */
3511735118
3511835119 function DataTextureLoader( manager ) {
3511935120
3512035121 Loader.call( this, manager );
3512135122
35122- // override in sub classes
35123- this._parser = null;
35124-
3512535123 }
3512635124
3512735125 DataTextureLoader.prototype = Object.assign( Object.create( Loader.prototype ), {
3513935137 loader.setPath( this.path );
3514035138 loader.load( url, function ( buffer ) {
3514135139
35142- var texData = scope._parser ( buffer );
35140+ var texData = scope.parse ( buffer );
3514335141
3514435142 if ( ! texData ) return;
3514535143
0 commit comments