Re: Trapezoid specification with spans?

Keith Packard <[email protected]>
Newsgroups gmane.comp.xfree86.render
Message-ID <E172EGE-0007Q5-00@localhost>
Around 16 o'clock on Apr 29, Carl Worth wrote:

> The specification also requires left to be less than right for each
> span, (which would eliminate the problematic intersection within a
> pixel, but might make it harder to use trapezoids for all triangles).

Yeah, that was before I changed the edges to arbitrary lines -- that's 
required for postscript to avoid kinks along the edges of larger figures.So I am thinking of:

> typedef struct {
>     xPointFixed	p1;
>     xPointFixed	p2;
> } xLineFixed;
> 
> typedef struct {
>     Fixed       top;
>     Fixed       bottom;
>     xLineFixed	left;
>     xLineFixed	right;
> } xTrap;

That looks right.

Keith Packard        XFree86 Core Team        Compaq Cambridge Research Lab
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.