Texture constructor
Texture([])
Implementation
Texture(
[image,
int? mapping,
int? wrapS,
int? wrapT,
int? magFilter,
int? minFilter,
int? format,
int? type,
int? anisotropy,
int? encoding]) {
source = Source(image);
this.mapping = mapping ?? Texture.defaultMapping;
this.wrapS = wrapS ?? ClampToEdgeWrapping;
this.wrapT = wrapT ?? ClampToEdgeWrapping;
this.magFilter = magFilter ?? LinearFilter;
this.minFilter = minFilter ?? LinearMipmapLinearFilter;
this.anisotropy = anisotropy ?? 1;
this.format = format ?? RGBAFormat;
internalFormat = null;
this.type = type ?? UnsignedByteType;
this.encoding = encoding ?? LinearEncoding;
}