#pragma section-numbers off #pragma disable-camelcase = SDL_GetClipRect = Use this function to get the clipping rectangle for a surface. <> == Syntax == {{{#!highlight cpp 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|Remarks]] for details|| == Code Examples == {{{#!highlight cpp 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. == Related Functions == .[[SDL_BlitSurface]] .[[SDL_SetClipRect]] ---- [[CategoryAPI]], [[CategorySurface]]