From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: polygon Date: Mon, 25 May 1998 16:04:55 -0400 Organization: Two pounds of chaos and a pinch of salt. Lines: 29 Message-ID: <3569CEE7.1C2A@cs.com> References: <6kc9rc$m6r$1 AT nclient3-gui DOT server DOT virgin DOT net> NNTP-Posting-Host: ppp107.cs.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk paul DOT r DOT thompson AT virgin DOT net wrote: > > hello > > can anybody recommend a piece of code > that draws a simple polygon (and possibly some clipping). I recommend that you examine the Allegro graphics/game library which is available at the same place you got DJGPP. Allegro is a very fast, powerful library with clear, easy to understand code. You can either build it and use it yourself, or look in the source to see how it draws triangles and polygons. An explanation like you request could get very lengthy depending on how much you already know about graphics in general and graphics with DJGPP. There are quite a few books out there that teach 3D graphics, although most of them would have to be adapted to DJGPP. Finally, questions about graphics in general are not on-topic for DJGPP, unless you're asking about DJGPP-specific coding. hth! -- --------------------------------------------------------------------- | John M. Aldrich |"A competent and self-confident person| | aka Fighteer I | is incapable of jealousy in anything.| | mailto:fighteer AT cs DOT com | Jealousy is invariably a symptom of | | http://www.cs.com/fighteer | neurotic insecurity." - Lazarus Long| ---------------------------------------------------------------------