DataArrayTexture constructor

DataArrayTexture(
  1. dynamic data, [
  2. int width = 1,
  3. int height = 1,
  4. int depth = 1,
])

Implementation

DataArrayTexture(data, [int width = 1, int height = 1, int depth = 1])
    : super(null, null, null, null, null, null, null, null, null, null) {
  image = ImageElement(data: data, width: width, height: height, depth: depth);

  magFilter = NearestFilter;
  minFilter = NearestFilter;

  wrapR = ClampToEdgeWrapping;

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