X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=lib%2Fgfxpoly%2Fxrow.h;h=5de10d4c4046195c7cc973effc8957b86b01eb36;hp=cc324364fd4a1f8bf079f17af77c17831221e776;hb=879d0eec420fe0fd5ddcd56c8fe62b82a6744edd;hpb=66a03382aab040571f94b0861719753bda3ff8f1 diff --git a/lib/gfxpoly/xrow.h b/lib/gfxpoly/xrow.h index cc32436..5de10d4 100644 --- a/lib/gfxpoly/xrow.h +++ b/lib/gfxpoly/xrow.h @@ -3,15 +3,22 @@ #include +#include "poly.h" + typedef struct _xrow { int32_t*x; int num; int size; + int32_t lastx; } xrow_t; xrow_t* xrow_new(); + void xrow_add(xrow_t*xrow, int32_t x); void xrow_sort(xrow_t*xrow); +int xrow_find(xrow_t*r, int32_t x); +char xrow_contains(xrow_t*xrow, int32_t x); +void xrow_dump(xrow_t*xrow, double gridsize); void xrow_reset(xrow_t*xrow); void xrow_destroy(xrow_t*xrow);