Function SDL_CreateRendererWithProperties

pub unsafe extern "C" fn SDL_CreateRendererWithProperties(
    props: u32,
) -> *mut SDL_Renderer
Available on crate feature dep_sdl3 only.
Expand description

Create a 2D rendering context for a window, with the specified properties.

These are the supported properties:

With the vulkan renderer:

§Parameters

  • props: the properties to use.

§Return value

Returns a valid rendering context or NULL if there was an error; call SDL_GetError() for more information.

§Thread safety

This function should only be called on the main thread.

§Availability

This function is available since SDL 3.2.0.

§See also