UI module

create_window_renderer

procedure · 1 overloadsince 0.31.0Source

Create a renderer drawing into window's surface. Returns null if no GPU or surface is available.

create_window_renderer :: (
    window: Window_Type,
    width: int,
    height: int
) -> *Renderer

Create a renderer drawing into window's surface. Returns null if no GPU or surface is available.

Parameters

window: Window_Type
the window to draw into.
width: int
the drawable width in pixels.
height: int
the drawable height in pixels.

Returns

See also