SDL_SetRenderClipRect

Set the clip rectangle for rendering on the specified target.

extern (C) nothrow @nogc extern
bool
SDL_SetRenderClipRect

Parameters

renderer SDL_Renderer*

The rendering context.

rect const(SDL_Rect)*

An SDL_Rect structure representing the clip area, relative to the viewport, or null to disable clipping.

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