void PEXOCCSetSurfaceInterpMethod( PEXOCC context, int method )
void PEXSetSurfaceInterpMethod( Display *display, XID resource_id, PEXOCRequestType req_type, int method )
None.
Invoke PEXOCCSetSurfaceInterpMethod to create an attribute output command which sets the surface interpolation method attribute in the renderer's pipeline state according to the value specified by method.
By setting the surface interpolation method attribute's ASF to PEXIndividual (see PEXOCCSetIndividualASF), you use the pipeline state's surface interpolation method entry to specify how color values, including any alpha components, are computed in the interior of surface primitives. When you set the surface interpolation method attribute's ASF to PEXBundled, the implementation uses the surface interpolation method from the interior bundle table.
If you do not set the facet distinguish flag to True (see PEXOCCSetFacetDistinguishFlag), then the implementation applies the surface interpolation method to back-facing as well as front-facing surface interiors. Otherwise the implementation uses the back-facing surface interpolation method (see PEXOCCSetBFSurfaceInterpMethod).
PEXlib defines the following surface interpolation methods (method):
If the implementation does not support the specified interpolation method, then the method defaults to PEXSurfaceInterpNone. Inquire the supported values for the surface interpolation method by invoking the PEXGetEnumTypeInfo function.
This function is a member of the styled and shaded surface attribute set.
For an overview and for a list of all output attribute functions, see Output Attribute Functions.