Hi,
Sorry, I didn’t want to say “above” but “beyond”.
Why is it that clipping
doesn’t affect the source surface too ?
Before a blit I set up my src and dst rectangles, so what’s the point
of clipping ? I mean, are there good example of usage ?
Cheers,
Julien
----- Message d’origine ----De : Pierre Phaneuf
? : A list for developers using the SDL library. (includes SDL-announce)
Envoy? le : Vendredi, 4 Juillet 2008, 17h35mn 58s
Objet : Re: [SDL] Re : Clip Rect
On Fri, Jul 4, 2008 at 11:29 AM, julien CLEMENT <@Julien_Clement1> wrote:
Can a clipping rectangle be used to blit on the screen and ensure that you
don’t blit above the screen’s boundaries ?
Above? In any case, the destination surface is implicitly clipped to,
so setting a clipping rectangle that’s equal to the size of the
surface (with a 0, 0 origin) is equivalent to not having a clipping
rectangle.
–
http://pphaneuf.livejournal.com/
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
_____________________________________________________________________________
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr