## 12.15 Polygon Modes

The graphics context has a few state variables that control how polygons are rendered. These variables are set by the following functions.

`void EZ_FrontFace(int orien);`

This function sets the front face for polygons (either `EZ_CW` or `EZ_CCW`). Each polygon has two possible faces, front and back. By default, the face with the counter-clock orientation is the front face. This function can be used to override the default

`void EZ_CullFace(int face);`

This function has no effect if cull face (back face removing) is disabled (default). The set mode is used to determine whether or not a particular polygon is rendered. The default mode is `EZ_BACK`, i.e., back facing polygons are not rendered if cull face is enabled. `EZ_Enable(EZ_CULL_FACE)` enables back face culling.

`void EZ_PolygonMode(int face, int mode);`

This function sets the rasterizing method for the `face` facing polygons. For example, the effect of `EZ_PolygoMode(EZ_FRONT,EZ_LINE)` is: for all front facing polygons only the edges are rasterized.

`face` specifies a face, either `EZ_FRONT` or `EZ_BACK` or `EZ_FRONT_AND_BACK`.

`mode` specifies a mode, either `EZ_FILL` or `EZ_LINE` or `EZ_POINT`.

HTML Documentation Maintainance:`Arturo Espinosa <arturo@nuclecu.unam.mx>`