SDL_GetClipRect
Use this function to get the clipping rectangle for a surface.
Syntax
void SDL_GetClipRect(SDL_Surface* surface,
SDL_Rect* rect)
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; see Remarks for details |
Code Examples
You can add your code example here
Remarks
When surface is the destination of a blit, only the area within the clip rectangle is drawn into.