CompressedTexture constructor

CompressedTexture(
  1. dynamic mipmaps,
  2. dynamic width,
  3. dynamic height,
  4. dynamic format,
  5. dynamic type,
  6. dynamic mapping,
  7. dynamic wrapS,
  8. dynamic wrapT,
  9. dynamic magFilter,
  10. dynamic minFilter,
  11. dynamic anisotropy,
  12. dynamic encoding,
)

Implementation

CompressedTexture(mipmaps, width, height, format, type, mapping, wrapS, wrapT,
    magFilter, minFilter, anisotropy, encoding)
    : super(null, mapping, wrapS, wrapT, magFilter, minFilter, format, type,
          anisotropy, encoding) {
  // this.image = ImageDataInfo(null, width, height, null);
  isCompressedTexture = true;
  print(" CompressedTexture todo ============ ");

  image = ImageElement(width: width, height: height);

  this.mipmaps = mipmaps;

  // no flipping for cube textures
  // (also flipping doesn't work for compressed textures )

  flipY = false;

  // can't generate mipmaps for compressed textures
  // mips must be embedded in DDS files

  generateMipmaps = false;
}