MGL_setPolygonType

Sets the current polygon type.

Declaration

void MGLAPI MGL_setPolygonType(
    int type)

Prototype In

mgraph.h

Parameters

type

New polygon type

 

Description

Sets the current polygon type. You can change this value to force MGL to work with a specific polygon type (and to avoid the default automatic polygon type checking). Polygon types supported by the SciTech MGL are enumerated in MGL_polygonType.

If you expect to be drawing lots of complex or convex polygons, setting the polygon type can result in faster polygon rasterizing. Note that this setting does not affect the specialized triangle and quadrilateral rasterizing routines.

See Also

MGL_getPolygonType, MGL_fillPolygon

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com