Pixel Color Mode


The pixel color mode attribute supports color defined as pixel values.

When the pixel color mode is PEXOn, if a color type is PEXColorTypeIndexed, then the index value is interpreted as a pixel value. The color lookup table is therefore not used to resolve PEXColorTypeIndexed colors. Colors of all other types are converted to pixel values by finding their closest match in the colormap of the drawable which is bound to the renderer. The following table describes the values which override the given pipeline state and renderer attributes when the pixel color mode is PEXOn.

Behaviors Enabled by the Pixel Color Mode
-----------------------------------------------------------------------------------
Attribute                                              Behavior
 
 
Pipeline state's data map method ASF                 PEXIndividual
 
Pipeline state's data map method                     None
 
Pipeline state's bf data map method ASF              PEXIndividual
 
Pipeline state's bf data map method                  None
 
Pipeline state's rendering color modelri           ignored (rendering is done with pixels)
 
Pipeline state's vertex order                        ignored (no reflectance calculations)
 
Pipeline state's polyline interpolation method ASF   PEXIndividual
 
Pipeline state's polyline interpolation method       None
 
Pipeline state's surface interpolation method ASF    PEXIndividual
 
Pipeline state's surface interpolation method        None
 
Pipeline state's light source state                  empty
 
Pipeline state's active textures                     empty
 
Pipeline state's bf active textures                  empty
 
Renderer's depth cue table entry's mode              Disabled
 
Renderer's transparency method                       None
 
Pipeline state's primitive antialiasing               no primitive types enabled
 
Renderer's color table                               ignored (indexed colors are pixel values)
 
Renderer's color approximation table                 ignored (color approximation is unnecessary)
-----------------------------------------------------------------------------------

To determine if your implementation supports pixel color mode, use PixelColorSupported with request PEXGetImpDepConstants.

The complete list of renderer attributes is listed in the Renderer Attributes Table.

For an overview about Renderers, see General Information. For a list of all Renderer functions and related topics, see Rendering.