Model loading · type

PngEncoder

PNG bytes for an RGBA image: the one capability an export may need from its host.

Explained in Importing models.

type PngEncoder = (width: number, height: number, rgba: Uint8Array) => Uint8Array
import type { PngEncoder } from '@driftengine/assets';