aboutsummaryrefslogtreecommitdiff
path: root/generic/Draw.h
diff options
context:
space:
mode:
authorlecoanet2003-06-16 14:58:44 +0000
committerlecoanet2003-06-16 14:58:44 +0000
commitacbf7c334cae1f0d6dc9ea111324cd6af679d852 (patch)
tree0843283b7097336c535ae73c1a4eae947aed4d79 /generic/Draw.h
parent16796950056756918d2a106206af3177c941809f (diff)
downloadtkzinc-acbf7c334cae1f0d6dc9ea111324cd6af679d852.zip
tkzinc-acbf7c334cae1f0d6dc9ea111324cd6af679d852.tar.gz
tkzinc-acbf7c334cae1f0d6dc9ea111324cd6af679d852.tar.bz2
tkzinc-acbf7c334cae1f0d6dc9ea111324cd6af679d852.tar.xz
Simplification of gradient prep.
Diffstat (limited to 'generic/Draw.h')
-rw-r--r--generic/Draw.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/generic/Draw.h b/generic/Draw.h
index f0166ef..16dcf0f 100644
--- a/generic/Draw.h
+++ b/generic/Draw.h
@@ -81,7 +81,7 @@ void ZnSetLineStyle(struct _ZnWInfo *wi, ZnLineStyle line_style);
void ZnLineShapePoints(ZnPoint *p1, ZnPoint *p2, ZnDim line_width,
ZnLineShape shape, ZnBBox *bbox, ZnList to_points);
void ZnDrawLineShape(struct _ZnWInfo *wi, ZnPoint *points, unsigned int num_points,
- ZnLineStyle line_style, XColor *line_foreground,
+ ZnLineStyle line_style, int foreground_pixel,
ZnDim line_width, ZnLineShape shape);
void
ZnGetLineEnd(ZnPoint *p1, ZnPoint *p2, ZnDim line_width,
@@ -107,12 +107,8 @@ void ZnRenderPolyline(struct _ZnWInfo *wi, ZnPoint *points, unsigned int num_poi
ZnDim line_width, ZnLineStyle line_style, int cap_style,
int join_style, ZnLineEnd first_end, ZnLineEnd last_end,
ZnGradient *gradient);
-void ZnComputeAxialGradient(struct _ZnWInfo *wi, ZnPoly *shape, ZnReal angle,
- ZnPoint *grad_geo);
-void ZnComputeRadialGradient(struct _ZnWInfo *wi, ZnPoly *shape, ZnBool oval,
- ZnPoint *center, ZnPoint *grad_geo);
-void ZnComputePathGradient(struct _ZnWInfo *wi, ZnPoly *shape, ZnPoint *center,
- ZnPoint *grad_geo);
+void ZnComputeGradient(ZnGradient *grad, struct _ZnWInfo *wi, ZnPoly *shape,
+ ZnPoint *grad_geo);
void ZnRenderGradient(struct _ZnWInfo *wi, ZnGradient *gradient,
void (*cb)(void *), void *closure, ZnPoint *quad,
ZnPoly *poly);