2 * $Source: s:/prj/tech/libsrc/g2/RCS/fl8lin.c $
5 * $Date: 1996/04/10 17:26:08 $
7 * Routines for drawing fixed-point lines onto a flat 8 canvas.
9 * This file is part of the g2 library.
17 /* same for norm, solid and clut */
19 #undef flat8_pixel_fill
20 #define flat8_pixel_fill(_p, _c) \
25 void flat8_uline (uchar c
, grs_vertex
*v0
, grs_vertex
*v1
)
31 void flat8_uline_norm (grs_vertex
*v0
, grs_vertex
*v1
)
33 flat8_uline(grd_gc
.fcolor
, v0
, v1
);
38 void flat8_uline_solid (grs_vertex
*v0
, grs_vertex
*v1
)
40 flat8_uline (grd_gc
.fill_parm
, v0
, v1
);
45 void flat8_uline_clut (grs_vertex
*v0
, grs_vertex
*v1
)
47 uchar c
= (uchar
)(((uchar
*)grd_gc
.fill_parm
)[grd_gc
.fcolor
]);
48 flat8_uline (c
, v0
, v1
);
53 #undef flat8_pixel_fill
54 #define flat8_pixel_fill(_p, _c) \
59 void flat8_uline_xor (grs_vertex
*v0
, grs_vertex
*v1
)
61 uchar c
=grd_gc
.fcolor
;
67 #undef flat8_pixel_fill
68 #define flat8_pixel_fill(_p, _c) \
73 void flat8_uline_blend (grs_vertex
*v0
, grs_vertex
*v1
)
75 uchar c
= grd_gc
.fcolor
;
76 uchar
*clut
= tluc8tab
[c
];
78 flat8_uline (c
, v0
, v1
);