void PEXOCCSetBFDataMappingMethod( PEXOCC context, int method, unsigned int data_rec_len, PEXPointer data_rec )
None.
Invoke PEXOCCSetBFDataMappingMethod to create an attribute output command which sets the back-facing data mapping method in the renderer's pipeline state according to the value specified by method.
The data mapping method specifies the mapping of color, or other application-specific data, to intrinsic color. This is the first stage in the color pipeline.
By setting the back-facing data mapping method attribute's ASF to PEXIndividual (see PEXOCCSetIndividualASF), you use the pipeline state's back-facing data mapping method entry to define the method for mapping color, or other application-specific data, to intrinsic color. When you set the back-facing data mapping method attribute's ASF to PEXBundled, the implementation uses the back-facing data mapping method from the data mapping table.
To apply the back-facing data mapping method to the back-facing surfaces of output primitives, you must set the facet distinguish flag to True (see PEXOCCSetFacetDistinguishFlag). If you set the flag to False, then the implementation uses the data mapping method when rendering back-facing surfaces (see PEXOCCSetDataMappingMethod).
PEXlib defines the following back-facing data mapping methods (method):
If the implementation does not support the specified data mapping method, then the method defaults to PEXDataMapNone.
If the data record size (data_rec_len) does not match the data mapping method (method) or if you specify an undefined source selector, then the implementation issues a BadPEXOutputCommand error.
This function is a member of the data mapping attribute set and affects all output primitives which can be data mapped.
The method PEXDataMapNone requires no data record.
The method PEXDataMapColor requires a list of source selectors chosen from the set (PEXDMMSurfaceColor, PEXDMMVertexColor, PEXDMMFacetColor). See PEXColorApproxEntry.
For an overview and for a list of output attribute functions, see Output Attribute Functions.