SDL_CreateRendererWithProperties

Function SDL_CreateRendererWithProperties 

Source
pub unsafe extern "C" fn SDL_CreateRendererWithProperties(
    props: SDL_PropertiesID,
) -> *mut SDL_Renderer
Expand description

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

These are the supported properties:

With the SDL GPU renderer (since SDL 3.4.0):

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