void PEXOCCSetDepthCueIndex( PEXOCC context, unsigned int index )
void PEXSetDepthCueIndex( Display *display, XID resource_id, PEXOCRequestType req_type, unsigned int index )
None.
Invoke PEXOCCSetDepthCueIndex to create an attribute output command which sets the depth-cue index attribute in the renderer's pipeline state according to the value specified by index.
Use the depth cue index to select an entry of the renderer's depth cue table. Depth cueing blends the color computed by the lighting, shading, and texturing stages of the rendering pipeline with a depth cue color. The blending is controlled relative to the depth in normalized projection coordinate (NPC) space. Use depth cueing, for example, to blend with the background color the portion of an image that is furthest away from the viewer. This heightens the sensation of depth in the image.
If you specify an undefined depth cue index, then the index defaults to zero. If index zero is defined, then depth cueing is turned off. If you specify an index which exceeds 65534, then the implementation issues a BadPEXOutputCommand error.
This function is a member of the global attribute set and affects all output primitives.
For an overview and for a list of all output attribute functions, see Output Attribute Functions.