OpenGLTexture constructor

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

Implementation

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

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

  generateMipmaps = false;
  needsUpdate = true;
}