SDL_GetRenderLogicalPresentationRect

Get the final presentation rectangle for rendering.

This function returns the calculated rectangle used for logical presentation, based on the presentation mode and output size. If logical presentation is disabled, it will fill the rectangle with the output size, in pixels.

extern (C) nothrow @nogc extern
bool
SDL_GetRenderLogicalPresentationRect

Parameters

renderer SDL_Renderer*

The rendering context.

rect SDL_FRect*

A pointer filled in with the final presentation rectangle, may be null.

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