some code refactors in raskter.c to sync it with build where mask tiling is being developed. Also adds a bit more mask tiling code.

This commit is contained in:
Peter Larabell
2012-07-10 04:51:08 +00:00
parent 1f9adff26f
commit 492d9aabe0
6 changed files with 547 additions and 455 deletions

View File

@@ -80,11 +80,21 @@ struct r_fill_context {
int bounds_length;
};
struct layer_init_data {
struct poly_vert *imask;
struct poly_vert *omask;
struct scan_line *bounds;
int *bound_indexes;
int bounds_length;
};
#ifdef __cplusplus
extern "C" {
#endif
void preprocess_all_edges(struct r_fill_context *ctx, struct poly_vert *verts, int num_verts, struct e_status *open_edge);
int PLX_init_base_data(struct layer_init_data *mlayer_data, float(*base_verts)[2], int num_base_verts,
float *buf, int buf_x, int buf_y);
int PLX_raskterize(float (*base_verts)[2], int num_base_verts,
float *buf, int buf_x, int buf_y, int do_mask_AA);
int PLX_raskterize_feather(float (*base_verts)[2], int num_base_verts,