4 /* Every segment has an original direction, which is the direction
5 the segment had in the input data.
6 as our scanline moves from minimum y to maximum y, "DOWN" means
7 the the (original) segment's y2 is larger than its y1 */
8 typedef enum {DIR_UP, DIR_DOWN, DIR_UNKNOWN} segment_dir_t;
10 typedef struct _edgestyle {
14 extern edgestyle_t edgestyle_default;
16 typedef struct _windstate
22 typedef struct _windcontext
27 typedef struct _windrule
29 windstate_t (*start)(windcontext_t* num_polygons);
30 windstate_t (*add)(windcontext_t*context, windstate_t left, edgestyle_t*edge, segment_dir_t dir, int polygon_nr);
31 edgestyle_t* (*diff)(windstate_t*left, windstate_t*right);
34 extern windrule_t windrule_evenodd;
35 extern windrule_t windrule_circular;
36 extern windrule_t windrule_intersect;
37 extern windrule_t windrule_union;