SDL_GetSurfaceClipRect3
Get the clipping rectangle for a surface.
Usage
#include "SDL3/SDL.h"
bool SDL_GetSurfaceClipRect(SDL_Surface *surface, SDL_Rect *rect);
Header file
Defined in SDL3/SDL_surface.h
Overview
When surface is the destination of a blit, only the area within the clip rectangle is drawn into.
Function parameters
surface
|
the |
|---|---|
rect
|
an |
Return value
Returns true on success or false on failure; call
SDL_GetError () for more information.
Thread safety
This function is not thread safe.