Răsfoiți Sursa

Textures: Clean up

Mr.doob 8 ani în urmă
părinte
comite
7d41df42f3

+ 2 - 2
src/textures/CanvasTexture.js

@@ -1,9 +1,9 @@
-import { Texture } from './Texture';
-
 /**
  * @author mrdoob / http://mrdoob.com/
  */
 
+import { Texture } from './Texture';
+
 function CanvasTexture( canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
 
 	Texture.call( this, canvas, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );

+ 2 - 2
src/textures/CompressedTexture.js

@@ -1,9 +1,9 @@
-import { Texture } from './Texture';
-
 /**
  * @author alteredq / http://alteredqualia.com/
  */
 
+import { Texture } from './Texture';
+
 function CompressedTexture( mipmaps, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy, encoding ) {
 
 	Texture.call( this, null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding );

+ 3 - 3
src/textures/CubeTexture.js

@@ -1,10 +1,10 @@
-import { Texture } from './Texture';
-import { CubeReflectionMapping } from '../constants';
-
 /**
  * @author mrdoob / http://mrdoob.com/
  */
 
+import { Texture } from './Texture';
+import { CubeReflectionMapping } from '../constants';
+
 function CubeTexture( images, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding ) {
 
 	images = images !== undefined ? images : [];

+ 3 - 3
src/textures/DataTexture.js

@@ -1,10 +1,10 @@
-import { Texture } from './Texture';
-import { NearestFilter } from '../constants';
-
 /**
  * @author alteredq / http://alteredqualia.com/
  */
 
+import { Texture } from './Texture';
+import { NearestFilter } from '../constants';
+
 function DataTexture( data, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy, encoding ) {
 
 	Texture.call( this, null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding );

+ 3 - 3
src/textures/DepthTexture.js

@@ -1,11 +1,11 @@
-import { Texture } from './Texture';
-import { NearestFilter, UnsignedShortType, UnsignedInt248Type, DepthFormat, DepthStencilFormat } from '../constants';
-
 /**
  * @author Matt DesLauriers / @mattdesl
  * @author atix / arthursilber.de
  */
 
+import { Texture } from './Texture';
+import { NearestFilter, UnsignedShortType, UnsignedInt248Type, DepthFormat, DepthStencilFormat } from '../constants';
+
 function DepthTexture( width, height, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy, format ) {
 
 	format = format !== undefined ? format : DepthFormat;

+ 6 - 6
src/textures/Texture.js

@@ -1,15 +1,15 @@
-import { EventDispatcher } from '../core/EventDispatcher';
-import { UVMapping } from '../constants';
-import { MirroredRepeatWrapping, ClampToEdgeWrapping, RepeatWrapping, LinearEncoding, UnsignedByteType, RGBAFormat, LinearMipMapLinearFilter, LinearFilter } from '../constants';
-import { _Math } from '../math/Math';
-import { Vector2 } from '../math/Vector2';
-
 /**
  * @author mrdoob / http://mrdoob.com/
  * @author alteredq / http://alteredqualia.com/
  * @author szimek / https://github.com/szimek/
  */
 
+import { EventDispatcher } from '../core/EventDispatcher';
+import { UVMapping } from '../constants';
+import { MirroredRepeatWrapping, ClampToEdgeWrapping, RepeatWrapping, LinearEncoding, UnsignedByteType, RGBAFormat, LinearMipMapLinearFilter, LinearFilter } from '../constants';
+import { _Math } from '../math/Math';
+import { Vector2 } from '../math/Vector2';
+
 var textureId = 0;
 
 function Texture( image, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding ) {

+ 2 - 2
src/textures/VideoTexture.js

@@ -1,9 +1,9 @@
-import { Texture } from './Texture';
-
 /**
  * @author mrdoob / http://mrdoob.com/
  */
 
+import { Texture } from './Texture';
+
 function VideoTexture( video, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy ) {
 
 	Texture.call( this, video, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );