1 /*
2    Copyright (c) 1991 - 1994 Heinz W. Werntges.  All rights reserved.
3    Distributed by Free Software Foundation, Inc.
4 
5 This file is part of HP2xx.
6 
7 HP2xx is distributed in the hope that it will be useful, but
8 WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
9 to anyone for the consequences of using it or for whether it serves any
10 particular purpose or works at all, unless he says so in writing.  Refer
11 to the GNU General Public License, Version 2 or later, for full details.
12 
13 Everyone is granted permission to copy, modify and redistribute
14 HP2xx, but only under the conditions described in the GNU General Public
15 License.  A copy of this license is supposed to have been
16 given to you along with HP2xx so you can know your rights and
17 responsibilities.  It should be in a file named COPYING.  Among other
18 things, the copyright notice and this notice must be preserved on all
19 copies.
20 
21 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
22 */
23 
24 #ifndef BRESNHAM_H
25 #define BRESNHAM_H
26 
27 /** bresnham.h: Header for Bresenham utility
28  **
29  ** 1991/01/04  V 1.00  HWW Originating
30  ** 1992/01/12  V 1.01  HWW ANSI prototypes required now
31  **/
32 
33 
34 #define	BRESENHAM_EOL	0x04
35 #define	BRESENHAM_ERR	0xff
36 
37 
38 typedef struct {
39 	int x, y;		/* 2d - pseudo device coord     */
40 } DevPt;
41 
42 
43 DevPt *bresenham_init(DevPt *, DevPt *);
44 int bresenham_next(void);
45 
46 #endif				/* BRESNHAM_H */
47