X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fgfxtools.h;h=e18596acec2e3fc2063b3daa0270bdd6bb3b0072;hb=d2f79d0a0b5be791d0aab7cf436a5baa2b1d0668;hp=aa787fbef390fa71daedbeda2a0c30dfde3b9eb0;hpb=50edd3bb0093193fc1a861acbd8ccc055fc120c0;p=swftools.git diff --git a/lib/gfxtools.h b/lib/gfxtools.h index aa787fb..e18596a 100644 --- a/lib/gfxtools.h +++ b/lib/gfxtools.h @@ -27,8 +27,8 @@ extern "C" { #endif -//#include "../lib/mem.h" -#include "../lib/rfxswf.h" +#include +#include "../lib/mem.h" #include "../lib/gfxdevice.h" typedef struct _gfxdrawer @@ -48,17 +48,23 @@ typedef struct _gfxpoint void gfxdrawer_target_gfxline(gfxdrawer_t*d); -void gfxtool_draw_dashed_line(gfxdrawer_t*d, gfxline_t*line, float*dashes); -gfxline_t* gfxtool_dash_line(gfxline_t*line, float*dashes); +void gfxtool_draw_dashed_line(gfxdrawer_t*d, gfxline_t*line, float*dashes, float phase); +gfxline_t* gfxtool_dash_line(gfxline_t*line, float*dashes, float phase); -void gfxline_dump(gfxline_t*l, FILE*fi); +void gfxline_dump(gfxline_t*l, FILE*fi, char*prefix); +gfxline_t* gfxline_append(gfxline_t*line1, gfxline_t*line2); void gfxline_free(gfxline_t*l); +gfxline_t* gfxline_clone(gfxline_t*line); -void gfxdraw_cubicTo(gfxdrawer_t*draw, double c1x, double c1y, double c2x, double c2y, double x, double y); +void gfxdraw_cubicTo(gfxdrawer_t*draw, double c1x, double c1y, double c2x, double c2y, double x, double y, double quality); +void gfxdraw_conicTo(gfxdrawer_t*draw, double cx, double cy, double tox, double toy, double quality); gfxbbox_t gfxline_getbbox(gfxline_t*line); gfxbbox_t gfxbbox_expand_to_point(gfxbbox_t box, gfxcoord_t x, gfxcoord_t y); +void gfxline_transform(gfxline_t*line, gfxmatrix_t*matrix); + +void gfxmatrix_dump(gfxmatrix_t*l, FILE*fi, char*prefix); #ifdef __cplusplus }