Skip to content

Texture

A texture on a renderer.

readonly id: number

Unique per texture, for batching.


readonly width: number

Pixels.


readonly height: number

Pixels.


source: TextureSource

Kept to upload again after a context loss, and for Canvas 2D’s drawImage.