Deactivating of a clipping area

Hallo,

is it possible to deactivate an active clipping area of a surface ?

Best Regards

–Armin__________________________________________________________________________
Erweitern Sie FreeMail zu einem noch leistungsst?rkeren E-Mail-Postfach!
Mehr Infos unter http://produkte.web.de/club/?mc=021131

El Viernes 22 Junio 2007, Armin Steinhoff escribi?:

is it possible to deactivate an active clipping area of a surface ?

IIRC this is done calling the clipping function again with zero size ( 0, 0,
0, 0)

Hello !

is it possible to deactivate an active clipping area of a surface ?

You can do that with SDL_SetClipRect :

http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fSetClipRect

CU

“Torsten Giebl” schrieb am 22.06.2007 11:51:31:

Hello !

is it possible to deactivate an active clipping area of a surface ?

You can do that with SDL_SetClipRect :

http://www.libsdl.org/cgi/docwiki.cgi/SDL_5fSetClipRect

Yes, you can activate with that call the clipping function.
As Alberto wrote … setting the y,x,w,h parameter to zero will disable that clipping.

Is it then deactivated because of the dimension of zero of the clipping rectangle?
Or does it suppress the clipping action for each pixel ??

Best Regards

–Armin>

CU


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Der WEB.DE SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
http://smartsurfer.web.de/?mc=100071&distributionid=000000000066

Hello !

You call SDL_SetClipRect (surface, NULL) to set the clipping rect to
the whole surface.

Yes, you can activate with that call the clipping function.
As Alberto wrote … setting the y,x,w,h parameter to zero will disable
that clipping.

Is it then deactivated because of the dimension of zero of the clipping
rectangle?
Or does it suppress the clipping action for each pixel ??

No. There is only one Clipping Rect per Surface.

You can not really deactivate Clipping, you can only set
the Clipping Rect from 0,0 to width, height, simply because
when SDL would not clip it may corrupt other memory when blitting.

Clipping Rect means SDL blits inside the Clipping Rect only and not outside.

CU