aboutsummaryrefslogtreecommitdiff
path: root/generic/Types.h
diff options
context:
space:
mode:
authorlecoanet2001-11-26 10:24:43 +0000
committerlecoanet2001-11-26 10:24:43 +0000
commitc3a8c59d28e43c81e3437d39db869849ff6fdf02 (patch)
tree9bc9939775cc5ca036778a1ece276dc945c6e0dc /generic/Types.h
parent87baed1fb08207991480eaf3d474530df5ef8ee1 (diff)
downloadtkzinc-c3a8c59d28e43c81e3437d39db869849ff6fdf02.zip
tkzinc-c3a8c59d28e43c81e3437d39db869849ff6fdf02.tar.gz
tkzinc-c3a8c59d28e43c81e3437d39db869849ff6fdf02.tar.bz2
tkzinc-c3a8c59d28e43c81e3437d39db869849ff6fdf02.tar.xz
Traitement des tristrips en interne.
Ajot d'un niveau de d�tail aux cercles.
Diffstat (limited to 'generic/Types.h')
-rw-r--r--generic/Types.h26
1 files changed, 25 insertions, 1 deletions
diff --git a/generic/Types.h b/generic/Types.h
index fa6ca0f..27d6a1a 100644
--- a/generic/Types.h
+++ b/generic/Types.h
@@ -73,6 +73,8 @@ typedef struct {
/*
* contour1/hole1 can be used to store a single contour
* without having to alloc the holes & contours arrays.
+ * The first three fields must be in sync with the gpc_polygon
+ * struct when using gpc.
*/
typedef struct {
int num_contours;
@@ -83,6 +85,26 @@ typedef struct {
ZnContour contour1;
ZnBool cw1;
} ZnPoly;
+
+typedef struct {
+ int num_points;
+ ZnPoint *points;
+} ZnStrip;
+
+/*
+ * The first two fields must be kept in sync with gpc_tristrip
+ * when using gpc.
+ */
+typedef struct {
+ int num_strips;
+ ZnStrip *strips;
+ ZnStrip strip1;
+ ZnBool fan; /* When using a fan, all contour vertices must be
+ * included to describe the contour as a polygon
+ * (clipping code use that to speed up region
+ * rendering). */
+ ZnPoint center;
+} ZnTriStrip;
/*
* ZnBBox: orig is into the area while corner is not.
@@ -277,6 +299,7 @@ typedef int ReliefStyle; /* Keep it an int to keep Tk happy */
*/
#define ZN_AXIAL_GRADIENT 0
#define ZN_RADIAL_GRADIENT 1
+#define ZN_PATH_GRADIENT 2
/*
* Type and constant values for automatic alignments.
@@ -340,7 +363,8 @@ typedef struct {
*/
#define ZN_CIRCLE_COARSE 0
#define ZN_CIRCLE_MEDIUM ZN_CIRCLE_COARSE+1
-#define ZN_CIRCLE_FINEST ZN_CIRCLE_MEDIUM+1
+#define ZN_CIRCLE_FINE ZN_CIRCLE_MEDIUM+1
+#define ZN_CIRCLE_FINEST ZN_CIRCLE_FINE+1
/*
* Some flags macros.