nanogui: Thread: Clipping code...


[<<] [<] Page 1 of 1 [>] [>>]
Subject: Clipping code...
From: Morten Rolland ####@####.####
Date: 24 Jan 2000 15:45:43 -0000
Message-Id: <388C7EA2.656E49B7@screenmedia.no>

Hello,

I've finally gotten around to try implement rectangle clipping
in GdArea, and I wonder:  Which version of the clipping code
is the one to come?  I don't want to dig deep into something
that is on the way out... Although they look similar in concept.

My guess is that the version selected by 'REGIONS' in
GdBlit is the latest stable version.

Also, after calling the GdClipArea function, I assume all
visible rectangles for the window in question is stored in
the clipregion->rects array, so I just have to look there
to see what needs to be painted, right?

I remember something about a rewrite of the clipping code -
is this done, or something to come?  If it is not yet
done, will it be so different from todays version that
it may not be worth implementing rectangle updating similar
to GdBlit for GdArea?

Thanx,
- Morten
Subject: RE: Clipping code...
From: Greg Haerr ####@####.####
Date: 24 Jan 2000 22:57:10 -0000
Message-Id: <C1962B36D9BBD311B0F80060083DFEFB041896@SYS.CenSoft.COM>

: I remember something about a rewrite of the clipping code -
: is this done, or something to come?  If it is not yet
: done, will it be so different from todays version that
: it may not be worth implementing rectangle updating similar
: to GdBlit for GdArea?


The new region code is in devrgn.c.  This code is only used if REGIONS
is defined.  The corresponding clipper is devclip2.c.

The current code is devclip.c.  However, the way to grab the
rectangles is almost entirely similar, and shouldn't concern
you too much.  The effective difference is that the old method
has a static rect array, the new has a dynamic array.  Look at
the GdBlit code, it is #defined for both clippers, and it works
with both.

So it's definitely worth implementing your GdArea update,
since once you get the rectangle, the code will remain the same.

Regards,

Greg

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.