xref: /plan9/sys/src/cmd/gs/src/gdevddrw.h (revision 593dc095aefb2a85c828727bbfa9da139a49bdf4)
1 /* Copyright (C) 2002 artofcode LLC. All rights reserved.
2 
3   This software is provided AS-IS with no warranty, either express or
4   implied.
5 
6   This software is distributed under license and may not be copied,
7   modified or distributed except as expressly authorized under the terms
8   of the license contained in the file LICENSE in this distribution.
9 
10   For more information about licensing, please refer to
11   http://www.ghostscript.com/licensing/. For information on
12   commercial licensing, go to http://www.artifex.com/licensing/ or
13   contact Artifex Software, Inc., 101 Lucas Valley Road #110,
14   San Rafael, CA  94903, U.S.A., +1(415)492-9861.
15 */
16 
17 /* $Id: gdevddrw.h,v 1.4 2004/02/08 01:41:58 igor Exp $ */
18 /* Prototypes of some polygon and image drawing procedures */
19 
20 #ifndef gdevddrw_INCLUDED
21 #  define gdevddrw_INCLUDED
22 
23 enum fill_trap_flags {
24     ftf_peak0 = 1,
25     ftf_peak1 = 2,
26     ftf_pseudo_rasterization = 4
27 };
28 
29 int gx_fill_trapezoid_cf_fd(gx_device * dev, const gs_fixed_edge * left,
30     const gs_fixed_edge * right, fixed ybot, fixed ytop, int flags,
31     const gx_device_color * pdevc, gs_logical_operation_t lop);
32 int gx_fill_trapezoid_cf_nd(gx_device * dev, const gs_fixed_edge * left,
33     const gs_fixed_edge * right, fixed ybot, fixed ytop, int flags,
34     const gx_device_color * pdevc, gs_logical_operation_t lop);
35 
36 #endif /* gdevddrw_INCLUDED */
37 
38