## 12.10 ColorMaterial

ColorMaterial is a mechanism that allows one to attach material properties to the current color, so that the library track continuously the components of its component values. ColorMaterial is one of the global state attributes and is enabled or disabled by `EZ_Enable(EZ_COLOR_MATERIAL)` or `EZ_Disable(EZ_COLOR_MATERIAL)`. It is disabled by default.

`void EZ_ColorMaterial(int face, int propName);`

This function attaches a material property `propName` to the current color. For example, if colorMaterial is enabled, the command

`EZ_ColorMaterial(EZ_FRONT, EZ_DIFFUSE)`

set the diffuse color of the front material to the current color.

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