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