home *** CD-ROM | disk | FTP | other *** search
/ Creative Computers / CreativeComputers.iso / shareware / text / dvi_3.62 / source / dvisrc.lha / dvidraw.h < prev    next >
C/C++ Source or Header  |  1993-10-26  |  1KB  |  41 lines

  1. #define MAX_RECURSE 64
  2.  
  3. extern void g_bezier(const coord *, const coord *,const coord *, const coord *, int ttl);
  4. extern void g_line(const coord *p1, const coord *p2);
  5. extern void g_circle(const coord *p, real r);
  6. extern void g_join(const coord *p);
  7. extern void hline(int x1, int y1, int x2, unsigned char pattern);
  8. extern int  iabs(int);
  9. extern int  isgn(int);
  10. extern int  fill_with_pattern(int);
  11.  
  12. extern int clip_active;
  13. extern int clip_nx, clip_ymin, clip_ymax, cmaxx;
  14. extern int *clip_x, **clip_y;
  15. extern int sw, *swp;
  16.  
  17. extern void clip_line(int x1, int y1, int x2, int y2);
  18. extern void setframe(int width, int height);
  19.  
  20. struct clip_xy { int x,y; };
  21.  
  22. #define SW_Y(y) { swp = y<clip_ymin || y>clip_ymax? &cmaxx : \
  23.     clip_y[y-clip_ymin]; sw=0;}
  24. #define SW_X(x) { while( x>=*swp) swp++, sw = !sw; }
  25. #define SW sw
  26.  
  27. extern int fill_mode;
  28.  
  29. typedef struct gstate_t
  30. {
  31.     real    *dash_vector;
  32.     real    dash_count;
  33.     int     dash_len;
  34.     int     dash_index;
  35.     int     dash_color;
  36.     real    line_width;
  37. } gstate_t;
  38.  
  39. extern gstate_t gstate;
  40.  
  41.