Mail Archives: djgpp/1999/04/14/10:45:46
Clipping? One approach:
For each window to be drawn (start from bottommost):
- create a (resizeable) array of rectangles. Start with one rectangel
in the array, which contains the window (ie, same size & position)
-for each higher window and each rectangle in the array, check for
overlap, and modify the array of rectangles so that it contains only
parts not obscured by the higher windows
Your rectangle and higher window can:
- completely overlap
- overlap corners - requires your rectangle to become two
- overlap sides - requires the size of your rectangle to be reduced
On Wed, 14 Apr 1999 01:52:11 +0200, Jonathan Gross <jgross AT ort DOT org DOT il>
wrote:
>I'm trying to build a graphic windowing system for dos.
>I need a way to draw all the windows fast, without drawing all of the
>windows from bottom to top.
> thanx.
>
- Raw text -