Texture
A texture on a renderer.
Properties
Section titled “Properties”
readonlyid:number
Unique per texture, for batching.
readonlywidth:number
Pixels.
height
Section titled “height”
readonlyheight:number
Pixels.
source
Section titled “source”source:
TextureSource
Kept to upload again after a context loss, and for Canvas 2D’s drawImage.