Hi all,
I have a very basic request to make.
Can someone explain me exactly the usage of SDL_SetClipRect and SDL_GetClipRect ?
Do those functions affect the behavior of SDL_BlitSurface ?
How ?
What is clipped exactly ?
Thank you
Julien_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr
It’s pretty simple. When you put a ClipRect on a surface, then that becomes the only “drawable” portion of the surface. In other words, if you use a surface with a ClipRect as the destination surface for a blit, it won’t draw to anything outside the defined rectangle, even if the source image is large enough to go beyond those boundaries.>----- Original Message ----
From: julien CLEMENT
Subject: [SDL] Clip Rect
Hi all,
I have a very basic request to make.
Can someone explain me exactly the usage of SDL_SetClipRect and SDL_GetClipRect ?
Do those functions affect the behavior of SDL_BlitSurface ?
How ?
What is clipped exactly ?
Thank you
Julien