Function sdl2_sys::SDL_GetClipRect

source ·
pub unsafe extern "C" fn SDL_GetClipRect(
    surface: *mut SDL_Surface,
    rect: *mut SDL_Rect
)
Expand description

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.

\param surface the SDL_Surface structure representing the surface to be clipped \param rect an SDL_Rect structure filled in with the clipping rectangle for the surface

\since This function is available since SDL 2.0.0.

\sa SDL_BlitSurface \sa SDL_SetClipRect