first version of new polygon intersector
[swftools.git] / lib / gfxpoly / xrow.h
diff --git a/lib/gfxpoly/xrow.h b/lib/gfxpoly/xrow.h
new file mode 100644 (file)
index 0000000..cc32436
--- /dev/null
@@ -0,0 +1,18 @@
+#ifndef __xrow_h__
+#define __xrow_h__
+
+#include <stdint.h>
+
+typedef struct _xrow {
+    int32_t*x;
+    int num;
+    int size;
+} xrow_t;
+
+xrow_t* xrow_new();
+void xrow_add(xrow_t*xrow, int32_t x);
+void xrow_sort(xrow_t*xrow);
+void xrow_reset(xrow_t*xrow);
+void xrow_destroy(xrow_t*xrow);
+
+#endif