Function SDL_GetRenderLogicalPresentation

pub unsafe extern "C" fn SDL_GetRenderLogicalPresentation(
    renderer: *mut SDL_Renderer,
    w: *mut i32,
    h: *mut i32,
    mode: *mut SDL_RendererLogicalPresentation,
) -> bool
Available on crate feature dep_sdl3 only.
Expand description

Get device independent resolution and presentation mode for rendering.

This function gets the width and height of the logical rendering output, or the output size in pixels if a logical resolution is not enabled.

§Parameters

  • renderer: the rendering context.
  • w: an int to be filled with the width.
  • h: an int to be filled with the height.
  • mode: the presentation mode used.

§Return value

Returns true on success or false on failure; 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