home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / os2 / hpgl312.zip / BRESNHAM.H < prev    next >
Text File  |  1993-04-18  |  1KB  |  43 lines

  1. /*
  2.    Copyright (c) 1991 - 1993 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. /** bresnham.h: Header for Bresenham utility
  25.  **
  26.  ** 91/01/04  V 1.00  HWW Originating
  27.  ** 92/01/12  V 1.01  HWW ANSI prototypes required now
  28.  **/
  29.  
  30.  
  31. #define    BRESENHAM_EOL    0x04
  32. #define    BRESENHAM_ERR    0xff
  33.  
  34.  
  35.  
  36. typedef struct {
  37.     int    x,y;        /* 2d - pseudo device coord    */
  38. } DevPt;
  39.  
  40.  
  41. DevPt    *bresenham_init    (DevPt *, DevPt *);
  42. int    bresenham_next    (void);
  43.