void PEXOCCSetDataMappingMethod( PEXOCC context, int method, unsigned int data_rec_len, PEXPointer data_rec )
None.
Invoke PEXOCCSetDataMappingMethod to create an output primitive which sets the data mapping method in the renderer's pipeline state according to the value specified by method.
By setting the data mapping method attribute's ASF to PEXIndividual (see PEXOCCSetIndividualASF), you use the pipeline state's data mapping method entry to define the method for mapping color, or other application-specific data, to intrinsic color. This is the first stage in the color pipeline. When you set the data mapping method attribute's ASF to PEXBundled, the implementation uses the data mapping method from the data mapping table.
If you do not set the facet distinguish flag to True (see PEXOCCSetFacetDistinguishFlag), then the implementation applies this data mapping method to back-facing as well as front-facing surfaces of output primitives. Otherwise the implementation uses the back-facing data mapping method (see PEXOCCSetBFDataMappingMethod).
PEXlib defines the following 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.
The method PEXDataMapNone requires no data record.
The method PEXDataMapColor requires a list of source selectors chosen from the set (PEXDMMSurfaceColor, PEXDMMVertexColor, PEXDMMFacetColor).
For an overview and for a list of output attribute functions, see Output Attribute Functions.