Supported Browsers Home   
MGL_getPlaneMask Previous   
MGL_getSpaceExtra Next   
External Functions Up   

MGL_getPolygonType

Returns the current polygon type.

Declaration

int MGLAPI MGL_getPolygonType(void)

Prototype In

mgraph.h

Return Value

Current polygon type code.

Description

Returns the current polygon type. You can change this value with the MGL_setPolygonType 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_setPolygonType, MGL_fillPolygon

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