OpenGLTexture constructor

OpenGLTexture(
  1. dynamic openGLTexture,
  2. dynamic mapping,
  3. dynamic wrapS,
  4. dynamic wrapT,
  5. dynamic magFilter,
  6. dynamic minFilter,
  7. dynamic format,
  8. dynamic type,
  9. dynamic anisotropy,
)

Implementation

OpenGLTexture(this.openGLTexture, mapping, wrapS, wrapT, magFilter, minFilter,
    format, type, anisotropy)
    : super(null, mapping, wrapS, wrapT, magFilter, minFilter, format, type,
          anisotropy, null) {
  isOpenGLTexture = true;

  this.format = format ?? RGBAFormat;
  this.minFilter = minFilter ?? LinearFilter;
  this.magFilter = magFilter ?? LinearFilter;

  generateMipmaps = false;
  needsUpdate = true;
}