Re: [AD] get_clip()

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2002-11-04, Vincent <vincent.penquerch@xxxxxxxxxx> wrote:
> 
> Mine had add_clip too, which I still is very useful. Well, at least, I use
> it, so it's useful for me :)

What does it do?

> It's handy when you want to:
> 
> int a,b,c,d;
> get_clip(bitmap,&a,&b,&c,&d);
> add_clip(bitmap,e,f,g,h);
> /* draw stuff */
> set_clip(bitmap,a,b,c,d);

Would it be eqv to set_clip(bitmap, a+e, b+f, g+c, d+h); here?
If so, nah, it's unnecessary :-)

-- 
王浩禎



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/