write
expect abstract fun write(sourceBuffer: MPPBuffer, sourceFormat: ColorFormat = format, sourceType: ColorType = type, x: Int = 0, y: Int = 0, width: Int = effectiveWidth, height: Int = effectiveHeight, level: Int = 0)(source)
write the contents from sourceBuffer to the ColorBuffer, potentially with format and type conversions
Parameters
sourceBuffer
a MPPBuffer holding raw image data
sourceFormat
the ColorFormat that is used for the image data stored in sourceBuffer, default is ColorBuffer.format
sourceType
the ColorType that is used for the image data stored in sourceBuffer, default is ColorBuffer.type
level
the mipmap-level of ColorBuffer to write to
abstract fun write(source: TexImageSource, x: Int = 0, y: Int = 0, width: Int = this.effectiveWidth, height: Int = this.effectiveHeight, level: Int = 0)(source)
abstract fun write(source: ArrayBufferView, sourceFormat: ColorFormat, sourceType: ColorType, x: Int = 0, y: Int = 0, width: Int = this.effectiveWidth, height: Int = this.effectiveHeight, level: Int = 0)(source)