Code

compile depending on WITH_LIBWPG
[inkscape.git] / src / libnr / nr-svp-private.h
1 #ifndef __NR_SVP_PRIVATE_H__
2 #define __NR_SVP_PRIVATE_H__
4 /*
5  * Pixel buffer rendering library
6  *
7  * Authors:
8  *   Lauris Kaplinski <lauris@kaplinski.com>
9  *
10  * This code is in public domain
11  */
13 #include <libnr/nr-svp.h>
15 #define NR_QUANT_X 16.0F
16 #define NR_QUANT_Y 16.0F
17 #define NR_COORD_X_FROM_ART(v) (floor (NR_QUANT_X * (v) + 0.5F) / NR_QUANT_X)
18 #define NR_COORD_Y_FROM_ART(v) (floor (NR_QUANT_Y * (v) + 0.5F) / NR_QUANT_Y)
19 #define NR_COORD_TO_ART(v) (v)
21 /* NRVertex */
23 NRVertex *nr_vertex_new (void);
24 NRVertex *nr_vertex_new_xy (NR::Coord x, NR::Coord y);
25 void nr_vertex_free_one (NRVertex *v);
26 void nr_vertex_free_list (NRVertex *v);
28 NRVertex *nr_vertex_reverse_list (NRVertex *v);
30 #endif