home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Creative Computers
/
CreativeComputers.iso
/
shareware
/
text
/
dvi_3.62
/
source
/
dvisrc.lha
/
dvidraw.h
< prev
next >
Wrap
C/C++ Source or Header
|
1993-10-26
|
1KB
|
41 lines
#define MAX_RECURSE 64
extern void g_bezier(const coord *, const coord *,const coord *, const coord *, int ttl);
extern void g_line(const coord *p1, const coord *p2);
extern void g_circle(const coord *p, real r);
extern void g_join(const coord *p);
extern void hline(int x1, int y1, int x2, unsigned char pattern);
extern int iabs(int);
extern int isgn(int);
extern int fill_with_pattern(int);
extern int clip_active;
extern int clip_nx, clip_ymin, clip_ymax, cmaxx;
extern int *clip_x, **clip_y;
extern int sw, *swp;
extern void clip_line(int x1, int y1, int x2, int y2);
extern void setframe(int width, int height);
struct clip_xy { int x,y; };
#define SW_Y(y) { swp = y<clip_ymin || y>clip_ymax? &cmaxx : \
clip_y[y-clip_ymin]; sw=0;}
#define SW_X(x) { while( x>=*swp) swp++, sw = !sw; }
#define SW sw
extern int fill_mode;
typedef struct gstate_t
{
real *dash_vector;
real dash_count;
int dash_len;
int dash_index;
int dash_color;
real line_width;
} gstate_t;
extern gstate_t gstate;