delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/04/14/10:45:46

From: DavMac AT iname DOT com (Davin McCall)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Help needed! windowing system
Date: Wed, 14 Apr 1999 14:18:53 GMT
Organization: Monash Uni
Lines: 23
Distribution: world
Message-ID: <3714a28c.13813545@newsserver.cc.monash.edu.au>
References: <3713D8AB DOT D1FA1602 AT ort DOT org DOT il>
NNTP-Posting-Host: damcc5.halls.monash.edu.au
X-Trace: towncrier.cc.monash.edu.au 924099516 18949 130.194.198.138 (14 Apr 1999 14:18:36 GMT)
X-Complaints-To: abuse AT monash DOT edu DOT au
NNTP-Posting-Date: 14 Apr 1999 14:18:36 GMT
X-Newsreader: Forte Free Agent 1.1/32.230
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019