SDL_GetRenderLogicalPresentation

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.

extern (C) nothrow @nogc extern
bool
SDL_GetRenderLogicalPresentation

Parameters

renderer SDL_Renderer*

The rendering context.

w int*

An int to be filled with the width.

h int*

An int to be filled with the height.

mode SDL_RendererLogicalPresentation*

The presentation mode used.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError for more information.

Threadsafety: This function should only be called on the main thread.

See Also

Meta