1 |
|
2 |
|
3 |
|
4 |
|
5 | import { Texture } from './Texture.js';
|
6 |
|
7 | function CompressedTexture( mipmaps, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy, encoding ) {
|
8 |
|
9 | Texture.call( this, null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding );
|
10 |
|
11 | this.image = { width: width, height: height };
|
12 | this.mipmaps = mipmaps;
|
13 |
|
14 |
|
15 |
|
16 |
|
17 | this.flipY = false;
|
18 |
|
19 |
|
20 |
|
21 |
|
22 | this.generateMipmaps = false;
|
23 |
|
24 | }
|
25 |
|
26 | CompressedTexture.prototype = Object.create( Texture.prototype );
|
27 | CompressedTexture.prototype.constructor = CompressedTexture;
|
28 |
|
29 | CompressedTexture.prototype.isCompressedTexture = true;
|
30 |
|
31 |
|
32 | export { CompressedTexture };
|