X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfxpoly%2Fconvert.h;h=eec362dfceb6e168013ae2c4f6e9ac6112d056b1;hb=8d76501168e44398feb36ae4d378178a676d8f2c;hp=93bf980fe22705bbba2c64c73b56b4a5b3b57c33;hpb=ae7c92fe5721f97e786a8bbe9153eadbf292460d;p=swftools.git diff --git a/lib/gfxpoly/convert.h b/lib/gfxpoly/convert.h index 93bf980..eec362d 100644 --- a/lib/gfxpoly/convert.h +++ b/lib/gfxpoly/convert.h @@ -1,9 +1,21 @@ #ifndef __poly_convert_h__ #define __poly_convert_h__ +#include "../gfxdevice.h" #include "poly.h" +typedef struct _polywriter +{ + void(*moveto)(struct _polywriter*, int32_t x, int32_t y); + void(*lineto)(struct _polywriter*, int32_t x, int32_t y); + void(*setgridsize)(struct _polywriter*, double g); + void*(*finish)(struct _polywriter*); + void*internal; +} polywriter_t; + +void gfxpolywriter_init(polywriter_t*w); gfxpoly_t* gfxpoly_from_gfxline(gfxline_t*line, double gridsize); gfxpoly_t* gfxpoly_from_file(const char*filename, double gridsize); +void gfxpoly_destroy(gfxpoly_t*poly); #endif //__poly_convert_h__