Create a renderer drawing into window's surface. Returns null if no GPU or surface is available.
- window: the window to draw into.
- width: the drawable width in pixels.
- height: the drawable height in pixels.
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.