Wiki Page Content

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.


CategoryAPI, CategorySurface

None: SDL_GetClipRect (last edited 2011-01-07 17:47:36 by SheenaSmith)

Feedback
Please include your contact information if you'd like to receive a reply.
Submit