Triangles
The triangle is the basic Glide rendering primitive. The Glide function grDrawTriangle() renders an arbitrarily oriented triangle with vertices a, b, and c to the screen.
void grDrawTriangle( const GrVertex *a, const GrVertex *b, 
    const GrVertex *c )
Triangles are rendered with the following filling rules:
void guDrawTriangleWithClip( const GrVertex *a, const GrVertex *b,
           const GrVertex *c )
Figure 4.2 Pixel rendering.
Which of the eight triangles shown in diagram (a) will render the pixel at the common vertex? In diagram (b), solid edges are considered inside the triangle while dotted edges are outside. The top row of diagrams are drawn with the origin in the lower left corner. The bottom row represent the other possibility: the origin is in the upper left corner. The two pairs of diagrams are mirror images of each other.

Chapter 4                                                                                                                    next: Points