The .drft container · interface

DrftTextureSource

An image to embed, already compressed, with what its own header said about it.

Explained in The .drft container.

interface DrftTextureSource
import type { DrftTextureSource } from '@driftengine/drft';

Properties

NameTypeDescription
namereadonlystringWhat the source model called this image, normally its declared relative path.
More

Carried so a texture can be addressed by name instead of by an ordinal. An ordinal is a position in whatever order a reader happened to meet its records, which is not something a consumer should have to know or a format should ask it to depend on.

codecreadonlynumber
widthreadonlynumber
heightreadonlynumber
bytesreadonlyUint8Array