SDL_GetSurfaceClipRect

Get the clipping rectangle for a surface.

When surface is the destination of a blit, only the area within the clip rectangle is drawn into.

extern (C) nothrow @nogc extern
bool
SDL_GetSurfaceClipRect

Parameters

surface SDL_Surface*

the SDL_Surface structure representing the surface to be clipped.

rect SDL_Rect*

an SDL_Rect structure filled in with the clipping rectangle for the surface.

Return Value

Type: bool

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

See Also

Meta