Mail Archives: djgpp/1998/05/25/16:46:50
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|
---------------------------------------------------------------------
- Raw text -