2015-12-03 15:46:17 +00:00
|
|
|
/* Copyright (C) 2001-2015 Peter Selinger.
|
2010-06-10 18:43:12 +00:00
|
|
|
* This file is part of Potrace. It is free software and it is covered
|
|
|
|
* by the GNU General Public License. See the file COPYING for details. */
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef RENDER_H
|
|
|
|
#define RENDER_H
|
|
|
|
|
2015-12-03 15:46:17 +00:00
|
|
|
#include "greymap.h"
|
2010-06-10 18:43:12 +00:00
|
|
|
|
|
|
|
struct render_s
|
|
|
|
{
|
|
|
|
greymap_t* gm;
|
2015-12-03 15:46:17 +00:00
|
|
|
double x0, y0, x1, y1;
|
|
|
|
int x0i, y0i, x1i, y1i;
|
|
|
|
double a0, a1;
|
|
|
|
int* incrow_buf;
|
2010-06-10 18:43:12 +00:00
|
|
|
};
|
|
|
|
typedef struct render_s render_t;
|
|
|
|
|
2015-12-03 15:46:17 +00:00
|
|
|
render_t* render_new( greymap_t* gm );
|
|
|
|
void render_free( render_t* rm );
|
|
|
|
void render_close( render_t* rm );
|
|
|
|
void render_moveto( render_t* rm, double x, double y );
|
|
|
|
void render_lineto( render_t* rm, double x, double y );
|
|
|
|
void render_curveto( render_t* rm,
|
|
|
|
double x2,
|
|
|
|
double y2,
|
|
|
|
double x3,
|
|
|
|
double y3,
|
|
|
|
double x4,
|
|
|
|
double y4 );
|
2010-06-10 18:43:12 +00:00
|
|
|
|
|
|
|
#endif /* RENDER_H */
|