logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_GetSurfaceClipRect - Get the clipping rectangle for a surface.

Availability

       This function is available since SDL 3.2.0.

Description

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

Function Parameters

surface
              the SDL_Surface structure representing the surface to be clipped.

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

Name

       SDL_GetSurfaceClipRect - Get the clipping rectangle for a surface.

Return Value

       for more information.

See Also

SDL_SetSurfaceClipRect(3)

Simple Directmedia Layer                           SDL 3.2.20                          SDL_GetSurfaceClipRect(3)

Synopsis

#include<SDL3/SDL_surface.h>boolSDL_GetSurfaceClipRect(SDL_Surface*surface,SDL_Rect*rect);

Thread Safety

       This function is not thread safe.

See Also