UI module

create_offscreen_renderer

procedure · 1 overloadsince 0.31.0Source

Create a renderer drawing into an offscreen texture of width by height pixels, for tests and screenshots. Returns null if no adapter is available.

create_offscreen_renderer :: (width: int, height: int) -> *Renderer

Create a renderer drawing into an offscreen texture of width by height pixels, for tests and screenshots. Returns null if no adapter is available.

Parameters

width: int
the target width in pixels.
height: int
the target height in pixels.

Returns

See also