Wiki Page Content

Revision 3 as of 2010-10-10 22:05:33

Clear message

DRAFT

SDL_GetClipRect

Use this function to get the clipping rectangle for the destination surface in a blit.

Syntax

void SDL_GetClipRect(SDL_Surface* surface,
                     SDL_Rect*    rect)

Function Parameters

surface

the [[SDL_Surface]] to clip / fill -or- the destination [[SDL_Surface]]

rect

must be a pointer to a valid rectangle [[SDL_Rect]] which will be filled with the correct values

Code Examples

You can add your code example here

Remarks

You can add useful comments here

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

The rectangle pointed to by rect will be filled with the clipping rectangle of the surface.
*


CategoryAPI, CategorySurface

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