Mail Archives: djgpp/1999/04/16/16:35:26
I'm working right now at a demo and I have what you need... if you realy want
this stuff mail me...
> Matthew> Anybody know the the theory and possibly the implementation of
> Matthew> a polygon fill? I know Allegro has such functions, but I
> Matthew> would prefer to write my own function to learn about it.
>
> For the theory, try standard graphics textbooks, such as Foley and van Dam.
>
> For code, you could do worse than to look at the source code for the GNU
> libplot library for 2D vector graphics (see URL below). The current
> release incorporates the X11 vector graphics code, and uses it to draw wide
> lines and filled polygons.
>
> The next release will break out the X11 code as a separate library
> ("libxmi", i.e. X Machine-Independent vector graphics).
>
> By the way, the X11 code was written in pre-ANSI C. Porting it to ANSI C,
> which is what I needed to do in order to incorporate it, was a bit of a
> challenge.
>
> --Robert
>
> --
> Robert S. Maier | Internet: rsm AT math DOT arizona DOT edu
> Dept. of Math. |
> Univ. of Arizona | FAX: +1 520 621 8322
> Tucson, AZ 85721 | Voice: +1 520 621 6892 (department)
> U.S.A. | +1 520 621 2617 (office)
>
> Maintainer of the GNU plotting utilities package
> (see http://www.gnu.org/software/plotutils/plotutils.html ).
- Raw text -