Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2010-02-25 21:21:28
Size: 781
Editor: SheenaSmith
Comment: create page, add content (Rev 5540)
Revision 2 as of 2010-08-09 15:49:05
Size: 1089
Editor: SheenaSmith
Comment: update content (old wiki)
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
||'''surface'''||the surface to query|| ||'''surface'''||^the surface to query^ ''-or-'' ^a pointer to the destination surface^||
Line 28: Line 28:
*<<BR>>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'''.<<BR>>*
Line 29: Line 33:
 .[[SDL_BlitSurface]] *

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 surface to query -or- a pointer to the destination surface

rect

must be a pointer to a valid rectangle 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

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

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