DataTexture constructor

DataTexture([
  1. dynamic data,
  2. int? width,
  3. int? 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

DataTexture(
    [data, int? width, int? height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy, encoding])
    : super(null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy, encoding) {
  image = ImageElement(data: data, width: width ?? 1, height: height ?? 1);

  generateMipmaps = false;
  flipY = false;
  unpackAlignment = 1;
}