improved intersector horizontal line support
[swftools.git] / lib / gfxpoly / xrow.h
1 #ifndef __xrow_h__
2 #define __xrow_h__
3
4 #include <stdint.h>
5
6 #include "poly.h"
7
8 typedef struct _xrow {
9     int32_t*x;
10     int num;
11     int size;
12     int32_t lastx;
13 } xrow_t;
14
15 xrow_t* xrow_new();
16 void xrow_add(xrow_t*xrow, int32_t x);
17 void xrow_sort(xrow_t*xrow);
18 void xrow_dump(xrow_t*xrow);
19 void xrow_reset(xrow_t*xrow);
20 void xrow_destroy(xrow_t*xrow);
21
22 #endif