home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / snip9707.zip / BRESNHAM.H < prev    next >
C/C++ Source or Header  |  1997-07-05  |  513b  |  23 lines

  1. /* +++Date last modified: 05-Jul-1997 */
  2.  
  3. /*
  4. **  Header file for Brian Dessent's Bresenham line/circle algorithms
  5. */
  6.  
  7. #ifndef BRESNHAM__H
  8. #define BRESNHAM__H
  9.  
  10. #define SCREEN_WIDTH 320
  11. #define SCREEN_HEIGHT 200
  12. #define MAX_X (SCREEN_WIDTH-1)
  13. #define MAX_Y (SCREEN_HEIGHT-1)
  14.  
  15. /* prototypes */
  16.  
  17. void setmode(int mode);
  18. void plotdot(int x, int y, char c);
  19. void bresenham_line(int x, int y, int x2, int y2, char c);
  20. void bresenham_circle(int xc, int yc, int r, char c);
  21.  
  22. #endif /* BRESNHAM__H */
  23.