SDL_RenderViewportSet

Return whether an explicit rectangle was set as the viewport.

This is useful if you're saving and restoring the viewport and want to know whether you should restore a specific rectangle or null. Note that the viewport is always reset when changing rendering targets.

extern (C) nothrow @nogc extern
bool
SDL_RenderViewportSet

Parameters

renderer SDL_Renderer*

The rendering context.

Return Value

Type: bool

true if the viewport was set to a specific rectangle, or false if it was set to null (the entire target).

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

See Also

Meta