added test for text selection functionality
[swftools.git] / lib / gfxpoly / renderpoly.h
1 #ifndef __renderpoly_h__
2 #define __renderpoly_h__
3
4 #include "poly.h"
5 #include "wind.h"
6
7 typedef struct {
8     int xmin;
9     int ymin;
10     int xmax;
11     int ymax;
12     int width;
13     int height;
14 } intbbox_t;
15
16 unsigned char* render_polygon(gfxpoly_t*polygon, intbbox_t*bbox, double zoom, windrule_t*rule, windcontext_t*context);
17
18 intbbox_t intbbox_new(int x1, int y1, int x2, int y2);
19 intbbox_t intbbox_from_polygon(gfxpoly_t*polygon, double zoom);
20
21 int bitmap_ok(intbbox_t*bbox, unsigned char*data);
22 int compare_bitmaps(intbbox_t*bbox, unsigned char*data1, unsigned char*data2);
23
24 #endif