Skip to content

TextureCanvas

const TextureCanvas: object

Defined in: sdk/src/render/textureCanvas.ts:58

create(width, height, options?): TextureCanvasHandle | null

A transparent canvas width × height pixels. Call it, and draw, from a Schedule.Update system, not a draw callback: each paste is a pass of its own. Null while the renderer is not up yet. Keep the pasted textures alive: a device loss pastes them again.

number

number

TextureCanvasOptions = {}

TextureCanvasHandle | null