Skip to content

Documentation / spryte / TextureSource

Type Alias: TextureSource ​

TextureSource = HTMLImageElement | HTMLCanvasElement | OffscreenCanvas | ImageBitmap | RenderTarget

Defined in: backend.ts:21

Image sources the renderer can draw. Textures are cached per source object.