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 DrftTextureSourceimport type { DrftTextureSource } from '@driftengine/drft';Properties
| Name | Type | Description |
|---|---|---|
namereadonly | string | What the source model called this image, normally its declared relative path.MoreCarried 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. |
codecreadonly | number | |
widthreadonly | number | |
heightreadonly | number | |
bytesreadonly | Uint8Array |