MGL_polygonType
Declaration
typedef enum {
MGL_CONVEX_POLYGON,
MGL_COMPLEX_POLYGON,
MGL_AUTO_POLYGON
} MGL_polygonType
Prototype In
mgraph.h
Description
Defines the polygon types passed to MGL_setPolygonType.
Members
MGL_CONVEX_POLYGON |
Monotone vertical polygon (includes convex polygons). A monotone vertical polygon is one whereby there will never be a horizontal line that can intersect the polygon at more than two edges at a time. Note that if you set the polygon type to this value and you pass it a non-monotone vertical polygon, the output results are undefined. |
MGL_COMPLEX_POLYGON |
Non-Simple polygons. When set to this mode the MGL will correctly rasterise all polygon types that you pass to it, however the drawing will be slower. |
MGL_AUTO_POLYGON |
Auto detect the polygon type. In this mode the MGL will examine the polygon vertices passed in and will automatically draw it with the faster routines if it is monotone vertical. Note that this does incur an overhead for the checking code, so if you know all your polygons are monotone vertical or convex, then you should set the type to MGL_CONVEX_POLYGON. |
Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com